#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


Please Help Members By Posting Answers For Below Questions

How pointer is different from array?

872


Why is #define used?

1049


What was noalias and what ever happened to it?

814


In C programming, how do you insert quote characters (‘ and “) into the output screen?

1278


What is define c?

800


What is the -> in c?

821


Explain zero based addressing.

819


Is int a keyword in c?

762


What is a stream in c programming?

862


What is the equivalent code of the following statement in WHILE LOOP format?

1115


I heard that you have to include stdio.h before calling printf. Why?

849


Explain modulus operator.

849


What extern c means?

768


c program to compute AREA under integral

2122


What is %d called in c?

992