C Language MCQ’S : Operators and Expressions Set 2

21.
The C declaration
int b [100];
reserves ____________ successive memory locations,each large enough to contain single integer.

A. 200
B. 10,000
C. 100
D. 10

 

22.
What is the output of the following ‘C’ program?

main
{
extern int i;
i = 20;
print(“%d”,size of (i));
}

A. 2
B. 8
C. Would vary compiler to cimpiler
D. Error

 

23.
What is the output of the following ‘C’ program?

main()
{
extern int a;
printf(“\n%d”,a);
}
int a=20;

A. Undefined
B. 20
C. Error
D. Garbage Value

 

24.
The value of an automatic variable that is declared but not initialized will be

A. 0
B. Null
C. Garbage
D. None of these

25.
Choose the correct answer

A. Enum variables can not be assigned new values
B. Enum variables can be compared
C. Enumeration feature increase the power of C
D. All of above

 

Visitor Counter

0051123