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 91easy
What will be the output of the following C code?
#include <stdio.h>
void main()
{
#define const int
const max = 32;
printf("%d", max);
}Question 92easy
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 93easy
What will be the output of the following C code?
#include <stdio.h>
int main()
{
register int i = 10;
int *p = &i
*p = 11;
printf("%d %d\n", i, *p);
}Advertisement
Question 94easy
The #elif directive cannot appear after the preprocessor #else directive.
Question 95easy
Preprocessor feature that supply line numbers and filenames to compiler is called?
Question 96easy
Which function definition will run correctly?
Advertisement
Question 97easy
#pragma exit is primarily used for?
Question 98easy
Which data type can be stored in register?
Question 99easy
What will be the output of the following C code?
#include <stdio.h>
void m();
void n()
{
m();
}
void main()
{
void m()
{
printf("hi");
}
}