What will be output when you will execute following c code?
#include
int main(){
printf("%d\t",sizeof(6.5));
printf("%d\t",sizeof(90000));
printf("%d",sizeof('A'));
return 0;
}
int main(){
printf("%d\t",sizeof(6.5));
printf("%d\t",sizeof(90000));
printf("%d",sizeof('A'));
return 0;
}
Overall Stats
Answers
इन this question answer will be 8 4 4. Because as per first printf option here any dcimal point value is considered as double by default; and in second print option integer value up to 2,14,74,83,647 is considered as int so answer is 4 and in last printf option here 'A' is also considered as int (65) so answer will be 8 4 4
-
Log in to add a comment
In this question answer will be 8 4 4 Because any hear any decimal point value is considered as double by default and up to 2147483647 is considered as int and hear 'A' is also treat as int
-
Log in to add a comment
ans is 4 2 1
-
Log in to add a comment
Yes correct answer is 8 4 1
-
Log in to add a comment
how is possible this answer actually answer is 0 how can tell answer 842
-
Log in to add a comment
can u explain the answer 8 4 1
-
Log in to add a comment
abri v from Albuquerque, United States is saying 8 4 2 is correct answer
rea com from Machhagan, India is saying 8 2 1 is correct answer
s g m from Solapur, India is saying 8 2 1 is correct answer
naveen kalusalingam from Chennai, India is saying 4 2 1 is correct answer
shashi singh from India is saying 8 4 2 is correct answer