A

Admin • 833.24K Points
Coach

Q. What will this code print?

Code:
#include <stdio.h>
int main() {
printf("%d", sizeof(double));
return 0;
}
  • (A) 2
  • (B) 4
  • (C) 8
  • (D) 10
  • Correct Answer - Option(C)
  • Views: 25
  • Filed under category C Programming
  • Hashtags:

Explanation by: Admin

Typically, double takes 8 bytes in C on most systems.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.