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 |
Why c is procedure oriented?
what are the various memory handling mechanisms in C ?
Write an algorithm for implementing insertion and deletion operations in a singly linked list using arrays ?
what is the output of the program and explain why?? #include<stdio.h> void main ( ) { int k=4,j=0: switch (k) { case 3; j=300; case 4: j=400: case 5: j=500; } printf (ā%d\nā,j); }
Write a program to print factorial of given number using recursion?
"C" language developed by "Dennis Ritchie" at AT & T. his remarks are a) too general, too abstract b) could deal with only specific problems c) lost generality of BCPL and B restored d) no remarks
praagnovation
write a program that types this pattern: 12345678987654321 12345678 87654321 1234567 7654321 123456 654321 12345 54321 1234 4321 123 321 12 21 1 1
Which is better malloc or calloc?
Write a program to print factorial of given number without using recursion?
Which of the following is not an infinite loop ? a.while(1){ .... } b.for(;;){ ... } c.x=0; do{ /*x unaltered within theloop*/ ... }while(x==0); d.# define TRUE 0 ... while(TRUE){ .... }
Explain about the constants which help in debugging?