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
Can stdout be forced to print somewhere other than the screen?
What is the purpose of clrscr () printf () and getch ()?
explain what is a newline escape sequence?
What is a double c?
What are the benefits of c language?
typedef struct{ char *; nodeptr next; } * nodeptr ; What does nodeptr stand for?
hi any body pls give me company name interview conduct "c" language only
.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; }
What is the difference between int main and void main in c?
What is a structure and why it is used?
How to throw some light on the b tree?
What are c preprocessors?
how we can make 3d venturing graphics on outer interface
Why header file is used in c?
What is the difference between exit() and _exit() function in c?