Search:

Type: Posts; User: sandeep6883; Keyword(s):

Search: Search took 0.00 seconds.

  1. Answers
    2
    Views
    3,016

    variable no. of arguments

    printf & scanf functions allow us to pass multiple and variable number of arguments.
    My question is what is the limit to the number of arguments passed?
  2. Re: Fastest algorithm to find the number of bits set in a number?

    For a number 'n'

    c=0;

    while(n)
    {
    c=c + (n&1);
    n=n>>1;
    }
  3. Answers
    3
    Views
    5,331

    Re: Find the size of a datatype

    Here is a full program as a solution

    #include <iostream>
    #include <conio.h>
    using namespace std;

    template <class T>
    size_t getsize()
    {
    T *p;
  4. Answers
    13
    Views
    5,236

    Re: Is this a correct statement

    I suppose you can add the keyword const i.e.

    const int &rnum=12;

    cuz 12 being a literal will be allocated as constant and so you can refer it using a constant reference.
Results 1 to 4 of 4
About us
Applying for a job can be a stressful and frustrating experience, especially for someone who has never done it before. Considering that you are competing for the position with a at least a dozen other applicants, it is imperative that you thoroughly prepare for the job interview, in order to stand a good chance of getting hired. That's where GeekInterview can help.
Interact