Sail E0 Webinar
Question

What will be output when you will execute following c code?
#include<stdio.h>
int main()
{
printf("%d\t", sizeof(6.5));
printf("%d\t", sizeof(90000));
printf("%d\t", sizeof('A'));
return 0;
}
Options:
A .  4 2 1
B .  8 2 1
C .  4 4 1
D .  8 4 1
E .  8 4 2
Answer: Option E

By default data type of numeric constants is:


6.5 :  double



90000: long int



‘A’: char



double is 8 byte



long int is 8 byte


Character constant is 2 byte



Was this answer helpful ?
Next Question

Submit Solution

Your email address will not be published. Required fields are marked *

Latest Videos

Latest Test Papers