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


Please Help Members By Posting Answers For Below Questions

Can stdout be forced to print somewhere other than the screen?

632


What is the purpose of clrscr () printf () and getch ()?

607


explain what is a newline escape sequence?

696


What is a double c?

601


What are the benefits of c language?

657






typedef struct{ char *; nodeptr next; } * nodeptr ; What does nodeptr stand for?

1086


hi any body pls give me company name interview conduct "c" language only

1680


.find the output of the following program? char*myfunc(char*ptr) { ptr +=3; return (ptr); } int main() { char*x,*y; x="HELLO"; y=myfunc(x); printf("y = %s ",y); return 0; }

2013


What is the difference between int main and void main in c?

601


What is a structure and why it is used?

630


How to throw some light on the b tree?

611


What are c preprocessors?

687


how we can make 3d venturing graphics on outer interface

4030


Why header file is used in c?

587


What is the difference between exit() and _exit() function in c?

594