MCQs
Total Questions : 41
| Page 2 of 5 pages
Answer: Option B. -> No
None.
Answer: Option C. -> 2, 1, 4
None.
Answer: Option D. -> double
None.
Answer: Option B. -> From float to char pointer
Conversion of a float to pointer type is not allowed.
Answer: Option D. -> Any character set
None.
Answer: Option D. -> Program will compile and print FAIL for 5 times
The ASCII value of 5 is 53, the char type-casted integral value 5 is 5 only.
Output:
$ cc pgm1.c
$ a.out
FAILED
FAILED
FAILED
FAILED
FAILED
Answer: Option C. -> Depends on the system/compiler
The size of the data types depend on the system.
Answer: Option B. -> int
Both %d and %i can be used as a format identifier for int data type.
Answer: Option D. -> All of the mentioned
typedef and struct are used to define user-defined data types.
Answer: Option A. -> short
65000 comes in the range of short (16-bit) which occupies the least memory.