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 136easy
Register storage class can be specified to global variables.
Question 137easy
What will be the output of the following C code?
#include <stdio.h>
void main()
{
m();
m();
}
void m()
{
static int x = 5;
x++;
printf("%d", x);
}Question 138easy
Which of the following are C preprocessors?
Advertisement
Question 139easy
What will be the output of the following C code?
#include <stdio.h>
#define MIN 0
#ifdef MIN
#define MAX 10
#endif
int main()
{
printf("%d %d\n", MAX, MIN);
return 0;
}Question 140easy
Which of the following function declaration is illegal?
Question 141easy
What will be the output of the following C code?
#include <stdio.h>
#define foo(m, n) " m ## n "
int main()
{
printf("%s\n", foo(k, l));
}Advertisement
Question 142easy
What will be the output of the following C code?
#include <stdio.h>
int main()
{
int one = 1, two = 2;
#ifdef next
one = 2;
two = 1;
#endif
printf("%d, %d", one, two);
}Question 143easy
If the file name is enclosed in angle brackets, then . . . . . . . .
Question 144easy
What will be the output of the following C code?
#include <stdio.h>
void m()
{
printf("hi");
}
void main()
{
m();
}