A
Q. What is the size of float in a 32-bit compiler?
- Correct Answer - Option(B)
- Views: 22
- Filed under category C Programming
- Hashtags:
A
In a 32-bit compiler, the size of a float data type is 4 bytes (32 bits) because:
Verification with C Code:
You can check the size of float using:
#include <stdio.h>
int main() {
printf("Size of float: %zu bytes
", sizeof(float));
return 0;
}
Output:
Size of float: 4 bytes
Final Answer:
✅ (B) 4
You must be Logged in to update hint/solution
Be the first to start discuss.
Discusssion
Login to discuss.