adplus-dvertising
frame-decoration

Question

What will be output when you will execute following c code?
#include <stdio.h>
int main()
{
    printf("%d ",sizeof(5.5));
    printf("%d ",sizeof(50000));
    printf("%d",sizeof('A')); 
    return 0;
  }

a.

4 2 1

b.

8 4 4

c.

8 4 2

d.

compiler dependent

Answer: (d).compiler dependent

Engage with the Community - Add Your Comment

Confused About the Answer? Ask for Details Here.

Know the Explanation? Add it Here.

Q. What will be output when you will execute following c code?