main()
{
printf("\n %d %d %d",sizeof('3'),sizeof("3"),sizeof(3));
}
wat is the o/p and how?
Answer Posted / raj
answer is :1 2 2 ;
size('3')means character constant so it is short int size it
will ocupi 1.
size("3")it will treated as string. 2
size(3) it is integer 2
| Is This Answer Correct ? | 9 Yes | 19 No |
Post New Answer View All Answers
What is union and structure?
What does c mean in basketball?
Under what circumstances does a name clash occur?
write a progrmm in c language take user interface generate table using for loop?
What are called c variables?
Why is c platform dependent?
What is a pointer on a pointer in c programming language?
Write a c program to build a heap method using Pointer to function and pointer to structure ?
Explain what are the standard predefined macros?
What is a structure in c language. how to initialise a structure in c?
What does the characters “r” and “w” mean when writing programs that will make use of files?
What is a loop?
How variables are declared in c?
Explain what is the benefit of using #define to declare a constant?
what is the format specifier for printing a pointer value?