main()
{
printf("\n %d %d %d",sizeof('3'),sizeof("3"),sizeof(3));
}
Answer Posted / manjulatha
'3' is a character so it take 1 byte
"3" is a string containing 2 characters 3 and \0 so it takes
2bytes
3 is a integer and it takes 4 bytes
so answer is 1 2 4
| Is This Answer Correct ? | 15 Yes | 6 No |
Post New Answer View All Answers
What is the process to create increment and decrement stamen in c?
What is the benefit of using #define to declare a constant?
In c programming, explain how do you insert quote characters (? And ?) Into the output screen?
What are data types in c language?
How many keywords (reserve words) are in c?
What's the best way of making my program efficient?
How do you use a 'Local Block'?
What is the difference between null pointer and wild pointer?
How are Structure passing and returning implemented by the complier?
How can I sort a linked list?
#include main() { enum _tag{ left=10, right, front=100, back}; printf("left is %d, right is %d, front is %d, back is %d",left,right,front,back); }
Who invented b language?
Which type of language is c?
What is atoi and atof in c?
Explain what standard functions are available to manipulate strings?