Function MCQs
Practice free Function multiple-choice questions with instant answer feedback and step-by-step solutions. Click an option to check yourself, reveal the full explanation, and work through all 223 questions — no login required.
Question 73easy
What will be the output of the following C code?
#include <stdio.h>
void main()
{
static int x;
if (x++ < 2)
main();
}Question 74easy
Assignment statements assigning value to local static variables are executed only once.
Question 75easy
The #else directive is used for . . . . . . . .
Advertisement
Question 76easy
What will be the output of the following C code?
#include <stdio.h>
void foo(auto int i);
int main()
{
foo(10);
}
void foo(auto int i)
{
printf("%d\n", i );
}Question 77easy
Conditional inclusion can be used for . . . . . . . .
Question 78easy
What will be the output of the following C code?
#include <stdio.h>
void main()
{
{
int x = 8;
}
printf("%d", x);
}Advertisement
Question 79easy
Comment on the output of the following C code.
#include <stdio.h>
#define var 20);
int main()
{
printf("%d\n", var
}Question 80easy
What will be the sequence of allocation and deletion of variables in the following C code?
#include <stdio.h>
int main()
{
int a;
{
int b;
}
}Question 81easy
What will be the output of the following C code?
#include <stdio.h>
enum m{JAN, FEB, MAR};
enum m foo();
int main()
{
enum m i = foo();
printf("%d\n", i);
}
int foo()
{
return JAN;
}