main()
{
printf("\n %d %d %d",sizeof('3'),sizeof("3"),sizeof(3));
}
wat is the o/p and how?
Answer Posted / niru
2 2 2
it returns the size of the int.
if the compiler is 32bit, size of the int=4
o/p: 4 4 4
For example:
void main()
{
long int i;
clrscr();
printf("%d %d %d \n",sizeof(i),sizeof("3"),sizeof(3));
getch();
}
output:4 2 2
| Is This Answer Correct ? | 1 Yes | 6 No |
Post New Answer View All Answers
How to check whether string is a palindrome, WITHOUT USING STRING FUNCTIONS?
What is openmp in c?
What is difference between union All statement and Union?
Can two or more operators such as and be combined in a single line of program code?
Why is not a pointer null after calling free?
What is a built-in function in C?
Write a program to check whether a number is prime or not using c?
How can I get back to the interactive keyboard if stdin is redirected?
Explain how can I manipulate strings of multibyte characters?
What should malloc() do? Return a null pointer or a pointer to 0 bytes?
Why we write conio h in c?
Explain union. What are its advantages?
What is the main difference between calloc () and malloc ()?
What is the difference between declaring a variable by constant keyword and #define ing that variable?
how could explain about job profile