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 free() know explain how much memory to release?
What is the difference between array and pointer?
Explain the advantages of using macro in c language?
What is void c?
What is union and structure?
How can I get back to the interactive keyboard if stdin is redirected?
explain what are actual arguments?
a formula,a series of steps,or well defined set of rules for solving a problem a) algorithem b) program c) erdiagram d) compiler
Explain what is the benefit of using an enum rather than a #define constant?
What are integer variable, floating-point variable and character variable?
Can static variables be declared in a header file?
Describe the header file and its usage in c programming?
What are shell structures used for?
What are the different types of endless loops?
What is a program flowchart?