main()
{
printf("\n %d %d %d",sizeof('3'),sizeof("3"),sizeof(3));
}
wat is the o/p and how?
Answer Posted / niru
2 2 2
it returns the size of the int.
if the compiler is 32bit, size of the int=4
o/p: 4 4 4
For example:
void main()
{
long int i;
clrscr();
printf("%d %d %d \n",sizeof(i),sizeof("3"),sizeof(3));
getch();
}
output:4 2 2
| Is This Answer Correct ? | 1 Yes | 6 No |
Post New Answer View All Answers
cavium networks written test pattern ..
main() { inta=10,b=20; a>=5?b=100:b=200; printf("%d ",b); }
i got 75% in all semester am i eligible for your company
What is ctrl c called?
What are the advantages and disadvantages of a heap?
What is the acronym for ansi?
What is include directive in c?
Give me the code of in-order recursive and non-recursive.
What should malloc() do?
What is extern variable in c with example?
What is the general form of a C program?
What is the translation phases used in c language?
What is c++ used for today?
Is c procedural or functional?
What is the right way to use errno?