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;
}
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;
}
Answer: Option E
Character constant is 2 byte
Was this answer helpful ?
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 ?
More Questions on This Topic :
Question 2.
By default a real number is treated as a
....
Question 3.
What is the output of the program
#includ....
Question 8.
Which of the following statements should be ....
Submit Solution