stdout, stdin and stderr are?
What will be the output of the following C++ code?
Which C++ container is used for manually writing a lookup table?
What is the output of the following C++ code?
void main()
{
int a, *pa, &ra;
pa = &a;
ra = a;
cout << "a=" << a << " *pa=" << *pa << " ra=" << ra;
}
What is the output of the following C program?
#include<stdio.h>
int main()
{
int a = 12;
void *ptr = &a;
printf("%d", *(int *)ptr);
getchar();
return 0;
}
What is the output of the following C program?
int main()
{
struct student
{
int age : 5;
int name : 6;
};
printf("size=%d", sizeof(struct student));
}
Which of the following statements is true about the this pointer?
Consider the following C function:
float f(float x, int y)
{
float p, s; int i;
for (s=1, p=1, i=1; i < y; i++)
{
p *= x/i;
s += p;
}
return s;
}
For larger values of y, the return value of the function f best approximates:
What is the output of the following program?
float fun(float);
float a=3.5;
int main()
{
float b;
a=a*5.0;
b=fun(a);
printf("%f",b);
return 0;
}
float fun(float x)
{
float sum;
x=x+2.5;
a=a-4.5;
sum=a+x;
return (sum);
}
When to use 'const' reference arguments in a function?