7 years ago in C Data Types

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;
}

[A] 4 2 1
[B] 8 2 1
[C] 8 4 2
Loading...
Next Question

Overall Stats

Attempted 170
Correct 19
Incorrect 52
Viewed 99

Answers

Guest
Guest
Gajender Yadav - 4 years ago

इन 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

Gajender Yadav - 4 years ago

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

Shree Krishan Jewliya - 4 years ago

ans is 4 2 1

Abhishek Singh - 4 years ago

Yes correct answer is 8 4 1

Sravan Lucky - 4 years ago

how is possible this answer actually answer is 0 how can tell answer 842

harichowdary madala - 5 years ago

can u explain the answer 8 4 1

Guest - 7 years ago

Please Correct the answer,it is 8 4 1

abri v
abri v - 3 months ago

abri v from Albuquerque, United States is saying 8 4 2 is correct answer

rea com
rea com - 3 months ago

rea com from Machhagan, India is saying 8 2 1 is correct answer

s g m
s g m - 4 years ago

s g m from Solapur, India is saying 8 2 1 is correct answer

naveen kalusalingam
naveen kalusalingam - 4 years ago

naveen kalusalingam from Chennai, India is saying 4 2 1 is correct answer

shashi singh
shashi singh - 4 years ago

shashi singh from India is saying 8 4 2 is correct answer

Related Questions

Identify the type(s) if data type.

  • [A] Scalar
  • [B] Drived
  • [C] Pointer
  • [D] All Of Above