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
What is a substring in c?
How to write a program for machine which is connected with server for that server automatically wants to catch the time for user of that machine?
Explain how can you avoid including a header more than once?
difference between native and cross compilers
simple program of graphics and their output display
What is linear search?
Explain what is the benefit of using an enum rather than a #define constant?
Why functions are used in c?
How to Throw some light on the splay trees?
What is the general form of a C program?
Why does everyone say not to use scanf? What should I use instead?
Who developed c language?
Write a C program to count the number of email on text
What do you understand by friend-functions? How are they used?
Explain how are portions of a program disabled in demo versions?