#include<stdio.h>
main(0
{
printf("\n %d %d %d",sizeof(3),sizeof("3"),sizeof(3));
}
Answer Posted / abhishek kumar verma
you have made a typing mistake if code will be this
#include<stdio.h>
main()
{
printf("\n %d %d %d",sizeof(3),sizeof("3"),sizeof(3));
}
then output will be 4 2 4
because in first it will print the size of an integer and in second it will print the size of an string and in third it will print the size of integer again .
Is This Answer Correct ? | 4 Yes | 5 No |
Post New Answer View All Answers
How pointer is different from array?
Why is #define used?
What was noalias and what ever happened to it?
In C programming, how do you insert quote characters (‘ and “) into the output screen?
What is define c?
What is the -> in c?
Explain zero based addressing.
Is int a keyword in c?
What is a stream in c programming?
What is the equivalent code of the following statement in WHILE LOOP format?
I heard that you have to include stdio.h before calling printf. Why?
Explain modulus operator.
What extern c means?
c program to compute AREA under integral
What is %d called in c?