Home Subjects C Programming Data Types & Variables

C Programming
Data Types & Variables

C language from basics to advanced placement prep

52 Q 10 Topics Take Mock Test
Advertisement
Difficulty: All Easy Medium Hard 51–52 of 52
Topics in C Programming
Which of the following occupies maximum memory in a 64-bit system?
A long int
B long double
C double
D unsigned long long
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.

Test
What will be the output of the following code?
int x = 5;
float y = x;
printf("%f", y);
A 5.000000
B Compilation error
C 5
D Garbage value
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.

Test
IGET
IGET AI
Online · Exam prep assistant
Hi! 👋 I'm your iget AI assistant.

Ask me anything about exam prep, MCQ solutions, study tips, or strategies! 🎯
UPSC strategy SSC CGL syllabus Improve aptitude NEET Biology tips