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
Do you know what are the properties of union in c?
Write a program to print numbers from 1 to 100 without using loop in c?
What 'lex' does?
Lists the benefits of c programming language?
State the difference between realloc and free.
Explain what are header files and explain what are its uses in c programming?
What is the purpose of void pointer?
c language supports bitwise operations, why a) 'c' language is system oriented b) 'c' language is problem oriented c) 'c' language is middle level language d) all the above
pierrot's divisor program using c or c++ code
What does %c mean in c?
Are local variables initialized to zero by default in c?
how to print the character with maximum occurence and print that number of occurence too in a string given ?
Explain the use of function toupper() with and example code?
What is the data segment that is followed by c?
How can you tell whether a program was compiled using c versus c++?