Govt. Exams
Entrance Exams
Advertisement
Topics in C Programming
Which of the following occupies maximum memory in a 64-bit system?
Correct Answer:
B. long double
EXPLANATION
In a 64-bit system, long double typically occupies 16 bytes (128 bits), which is the maximum among these options.
What will be the output of the following code?
int x = 5;
float y = x;
printf("%f", y);
int x = 5;
float y = x;
printf("%f", y);
Correct Answer:
A. 5.000000
EXPLANATION
Implicit type conversion occurs from int to float. The value 5 is converted to 5.0 and printed as 5.000000 with %f format specifier.