C Language MCQ’S : Operators and Expressions Set 2

6.
The program fragment

int i = 263 ;
putchar (i) ;
prints

A. 263
B. ASCII equivalent of 263
C. rings the bell
D. garbage

 

7.
int i = 5;
is a statement in a C program.

A. during execution, value of i may change but not its address
B. during execution both the address and value may change
C. repeated execution may result in different addresses for i
D. i may not have an associated address

 

8.
If the declaration unsigned c:5; is replaced by
unsigned : 6; then

A. it results in a syntax error
B. it is meaningless
C. compiler will give a new name for the field
D. none of these

 

9.
By default, any real number in ‘C’ is treated as

A. A float
B. A double
C. A long double
D. Depend upon memory model that you are using

 

10.
In C programming language, if the first and the second operands of operator + are of types int and float, respectively, the result will be of type

A. int
B. float
C. char
D. long int

 

Visitor Counter

0056697