main()
{
printf("\n %d %d %d",sizeof('3'),sizeof("3"),sizeof(3));
}
Answer Posted / manjulatha
'3' is a character so it take 1 byte
"3" is a string containing 2 characters 3 and \0 so it takes
2bytes
3 is a integer and it takes 4 bytes
so answer is 1 2 4
| Is This Answer Correct ? | 15 Yes | 6 No |
Post New Answer View All Answers
How can my program discover the complete pathname to the executable from which it was invoked?
Why c is called a middle level language?
What is extern variable in c with example?
Why is c so powerful?
Why does everyone say not to use scanf? What should I use instead?
Where register variables are stored in c?
Function calling procedures? and their differences? Why should one go for Call by Reference?
What is p in text message?
What is the difference between union and anonymous union?
Tell us the use of fflush() function in c language?
What is selection sort in c?
In the DOS enveronment, normal RAM that resides beyond the 1mb mark. a) expanded memory b) swapped memory c) Extended memory d) none
write a program for the normal snake games find in most of the mobiles.
What is typeof in c?
What is the difference between typedef struct and struct?