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 109easy
What will be the output of the following C code?
#include <stdio.h>
void foo();
int main()
{
void foo(int);
foo(1);
return 0;
}
void foo(int i)
{
printf("2 ");
}Question 110easy
Which of the following is an external variable in the following C code?
#include <stdio.h>
int func (int a)
{
int b;
return b;
}
int main()
{
int c;
func (c);
}
int d;Question 111easy
C preprocessors can have compiler specific features.
Advertisement
Question 112easy
In a conditional inclusion, if the condition that comes after the if is true, then what will happen during compilation?
Question 113easy
What will be the output of the following C code?
#include <stdio.h>
void main()
{
#define max 37
printf("%d", max);
}Question 114easy
Which of the following properties of #define is not true?
Advertisement
Question 115easy
What is a preprocessor?
Question 116easy
What will be the output of the following C code?
#include <stdio.h>
#define MIN 0
#if MIN
#define MAX 10
#endif
int main()
{
printf("%d %d\n", MAX, MIN);
return 0;
}Question 117easy
What is the scope of an external variable?