main()
{
printf("\n %d %d %d",sizeof('3'),sizeof("3"),sizeof(3));
}
Answer Posted / hemachandar
the first ('3') value goes to char., so it takes 1.
then for second ("3") value takes the string., string value takes 2.
for third (3), its int., so it takes the value of 2.
Every printf takes the values from right to left, so it takes the output as 2 2 1.
Simple!!!
| Is This Answer Correct ? | 1 Yes | 1 No |
Post New Answer View All Answers
How does struct work in c?
What is the correct declaration of main?
Why is %d used in c?
which type of aspect you want from the student.
What is void main ()?
write a c program in such a way that if we enter the today date the output should be next day's date.
Why static is used in c?
Why main function is special give two reasons?
ATM machine and railway reservation class/object diagram
in programming languages a statement or part of a statement that specifies several different execution sequences a) constructs b) distructs c) executes d) none
Explain why c is faster than c++?
a=10;b= 5;c=3;d=3; if(a printf(%d %d %d %d a,b,c,d) else printf("%d %d %d %d a,b,c,d);
In c programming typeing to occupy the variables in memory space. if not useing the variable the memory space is wasted.ok, how to avoid the situation..? (the variable is used & notused)
program to find out date after adding 31 days to a date in the month of febraury also consider the leap year
Which programming language is best for getting job 2020?