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
Explain the use of bit fieild.
a value that does not change during program execution a) variabe b) argument c) parameter d) none
Why is extern used in c?
What is the purpose of clrscr () printf () and getch ()?
What is the use of bitwise operator?
What are different storage class specifiers in c?
List some basic data types in c?
Write a code to generate a series where the next element is the sum of last k terms.
Explain what is the concatenation operator?
How do you determine whether to use a stream function or a low-level function?
What is merge sort in c?
What does c in a circle mean?
I was asked to write a program in c which when executed displays how many no.of clients are connected to the server.
Dont ansi function prototypes render lint obsolete?
What is the right way to use errno?