21. Which among the following is the correct syntax to declare a static variable register?
22. The below two lines are equivalent to . . . . . . . .
#define C_IO_HEADER <stdio.h>
#include C_IO_HEADER
#define C_IO_HEADER <stdio.h>
#include C_IO_HEADER23. Which part of the program address space is p stored in the following C code?
#include <stdio.h>
int *p;
int main()
{
int i = 0;
p = &i;
return 0;
}
#include <stdio.h>
int *p;
int main()
{
int i = 0;
p = &i;
return 0;
}24. What will be the output of the following C code?
#include <stdio.h>
void main()
{
register int x = 0;
if (x < 2)
{
x++;
main();
}
}
#include <stdio.h>
void main()
{
register int x = 0;
if (x < 2)
{
x++;
main();
}
}25. When compiler accepts the request to use the variable as a register?
26. What will be the output of the following C code?
#include <stdio.h>
void f();
int main()
{
#define foo(x, y) x / y + x
f();
}
void f()
{
printf("%d\n", foo(-3, 3));
}
#include <stdio.h>
void f();
int main()
{
#define foo(x, y) x / y + x
f();
}
void f()
{
printf("%d\n", foo(-3, 3));
}27. What will be the output of the following C code?
#include <stdio.h>
void main()
{
register int x;
printf("%d", x);
}
#include <stdio.h>
void main()
{
register int x;
printf("%d", x);
}28. What is the return-type of the function sqrt()?
29. Can function definition be present in header files?
30. What will be the output of the following C code?
#include <stdio.h>
double i;
int main()
{
printf("%g\n",i);
return 0;
}
#include <stdio.h>
double i;
int main()
{
printf("%g\n",i);
return 0;
}Read More Section(Function)
Each Section contains maximum 100 MCQs question on Function. To get more questions visit other sections.
