5 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 287
Correct 38
Incorrect 99
Viewed 150

Answers

Guest
Guest
Gajender Yadav - 2 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 - 2 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 - 2 years ago

ans is 4 2 1

Abhishek Singh - 2 years ago

Yes correct answer is 8 4 1

Sravan Lucky - 2 years ago

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

harichowdary madala - 3 years ago

can u explain the answer 8 4 1

Guest - 5 years ago

Please Correct the answer,it is 8 4 1

Deep
Deep - 1 month ago

Deep from Kolkata, India is saying 8 2 1 is correct answer

R.K YouTube channel
R.K YouTube channel - 8 months ago

R.K YouTube channel from Bhubaneswar, India is saying 4 2 1 is correct answer

Shubham Verma
Shubham Verma - 8 months ago

Shubham Verma from Bengaluru, India is saying 8 2 1 is correct answer

Madiha Qazi
Madiha Qazi - 10 months ago

Madiha Qazi from Karachi, Pakistan is saying 8 2 1 is correct answer

Meruva Sreenivasulu
Meruva Sreenivasulu - 11 months ago

Meruva Sreenivasulu from Nellore, India is saying 8 2 1 is correct answer

Related Questions

Identify the type(s) if data type.

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