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 many levels of pointers can you have?
Explain what does the function toupper() do?
What is time null in c?
Explain the difference between ++u and u++?
What is data structure in c language?
What is the code in while loop that returns the output of given code?
What is optimization in c?
What is the size of a union variable?
How can I call a function with an argument list built up at run time?
What is the advantage of using #define to declare a constant?
What is data structure in c and its types?
Explain can you assign a different address to an array tag?
#define PRINT(int) printf("int = %d ",int) main() {< BR> intx,y,z; x=03;y=02;z=01; PRINT(x^x); z<<=3;PRINT(x); y>>=3;PRINT(y); }
Why do we write return 0 in c?
Can you tell me how to check whether a linked list is circular?