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?
Type: Posts; User: sandeep6883; Keyword(s):
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?
For a number 'n'
c=0;
while(n)
{
c=c + (n&1);
n=n>>1;
}
Here is a full program as a solution
#include <iostream>
#include <conio.h>
using namespace std;
template <class T>
size_t getsize()
{
T *p;
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.