0

Well in the case of sizeof ....how does the output of program shows the value as 4,4,8,1??

2nd Jan 2019, 5:10 AM
Rajesh Raja
Rajesh Raja - avatar
2 Answers
+ 3
It would be tremendously helpful if you could post the code
2nd Jan 2019, 5:34 AM
Anna
Anna - avatar
+ 1
#include <stdio.h> int main() { printf("int: %d \n", sizeof(int)); printf("float: %d \n", sizeof(float)); printf("double: %d \n", sizeof(double)); printf("char: %d \n", sizeof(char)); return 0; } Output int=4 float= 4 double=8 char=1
2nd Jan 2019, 7:13 AM
Rajesh Raja
Rajesh Raja - avatar