main()
{
printf("\n %d %d %d",sizeof('3'),sizeof("3"),sizeof(3));
}
wat is the o/p and how?
Answers were Sorted based on User's Feedback
Answer / 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 |
write a c program to check weather a particluar bit is set or not?
What is union and structure?
Why do u use # before include in a C Progam?
how to implement stack work as a queue?
Which of the following operators is incorrect and why? ( >=, <=, <>, ==)
What are the two forms of #include directive?
What is modeling?
char S; char S[6]= " HELLO"; printf("%s ",S[6]); output of the above program ? (0, ASCII 0, I,unpredictable)
what is a c-language.what is do.
difference between my-strcpy and strcpy ?
3 Answers Geometric Software, IIM, Infosys,
What is ## preprocessor operator in c?
How can I return multiple values from a function?