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 |
what is self refrential structure
How to define structures? ·
Should a function contain a return statement if it does not return a value?
What is static volatile in c?
The differences between Windows XP and Windows Visa
What is the general form of function in c?
how to find the given number is prime or not?
main() { int i,n=010; int sum=0; for(i=1;i<=n;i++) {s=s+i; } printf("%d",&s); getch(); }
What would the following code segment printint k = 8;docout << "k = " << k << " ";while k++ < 5; a) 13 b) 5 c) 8 d) pointers
Is it better to bitshift a value than to multiply by 2?
Dear Sir, we are required the bubble sorting programs Regs Prem
a C prog to swap 2 no.s without using variables just an array?