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 118easy
What is the sequence for preprocessor to look for the file within <>?
Question 119easy
What is the scope of an automatic variable?
Question 120easy
Which of the following is a storage specifier?
Advertisement
Question 121easy
Which among the following is the correct syntax to declare a static variable register?
Question 122easy
The below two lines are equivalent to . . . . . . . .
#define C_IO_HEADER <stdio.h>
#include C_IO_HEADERQuestion 123easy
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;
}Advertisement
Question 124easy
What will be the output of the following C code?
#include <stdio.h>
void main()
{
register int x = 0;
if (x < 2)
{
x++;
main();
}
}Question 125easy
When compiler accepts the request to use the variable as a register?
Question 126easy
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));
}