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
What is const volatile variable in c?
write a program to convert a expression in polish notation(postfix) to inline(normal) something like make 723+* (2+3) x 7 (not sure) just check out its mainly printing expression in postfix form to infix.
while initialization of array why we use a[][2] why not a[2][]...?
What is %d called in c?
What is meant by type casting?
What is the difference between int main and void main in c?
How to establish connection with oracle database software from c language?
This is a variation of the call_me function in the previous question:call_me (myvar)int *myvar;{ *myvar += 5; }The correct way to call this function from main() will be a) call_me(myvar) b) call_me(*myvar) c) call_me(&myvar) d) expanded memory
What is variable and explain rules to declare variable in c?
Which driver is a pure java driver
What are keywords c?
What does a function declared as pascal do differently?
What is bubble sort technique in c?
What are the __date__ and __time__ preprocessor commands?
Explain the use of 'auto' keyword in c programming?