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


Please Help Members By Posting Answers For Below Questions

Why main function is special give two reasons?

948


What is the difference between new and malloc functions?

580


Why is void main used?

621


Explain the difference between #include "..." And #include <...> In c?

631


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..

1591






How can I read/write structures from/to data files?

552


How do you initialize pointer variables?

614


Why can arithmetic operations not be performed on void pointers?

590


Can we assign string to char pointer?

588


What is binary tree in c?

622


Why is a semicolon (;) put at the end of every program statement?

628


pierrot's divisor program using c or c++ code

1732


Does c have class?

613


How can I check whether a file exists? I want to warn the user if a requested input file is missing.

656


What is a example of a variable?

553