adplus-dvertising
frame-decoration

Question

What is the output of this program?
#include <stdio.h>
int main(){
    printf("%d ",sizeof(2.5));
 printf("%d ",sizeof(2));
 printf("%d",sizeof('A'));
 return 0;
}

a.

8 4 2

b.

4 4 1

c.

8 4 1

d.

4 4 2

Answer: (b).4 4 1

Engage with the Community - Add Your Comment

Confused About the Answer? Ask for Details Here.

Know the Explanation? Add it Here.

Q. What is the output of this program?