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
Is This Answer Correct ? | 3 Yes | 8 No |
Post New Answer View All Answers
Why main function is special give two reasons?
What is the difference between new and malloc functions?
Why is void main used?
Explain the difference between #include "..." And #include <...> In c?
If i have an array 0 to 99 i.e,(Size 100) I place the values 1 to 100 randomly like a[0]=29,a[1]=56 upto array[99].. the values are only between 1 to 100. getting the array values by using scanf.. If i entered one wrong element value line a[56]=108. how can i find it.. and also how to find the missing value in 1 to 100.. and i want to replace the missing values.. any one of them know please post your answer..
How can I read/write structures from/to data files?
How do you initialize pointer variables?
Why can arithmetic operations not be performed on void pointers?
Can we assign string to char pointer?
What is binary tree in c?
Why is a semicolon (;) put at the end of every program statement?
pierrot's divisor program using c or c++ code
Does c have class?
How can I check whether a file exists? I want to warn the user if a requested input file is missing.
What is a example of a variable?