Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

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


Please Help Members By Posting Answers For Below Questions

cavium networks written test pattern ..

4027


main() { inta=10,b=20; a>=5?b=100:b=200; printf("%d ",b); }

1450


i got 75% in all semester am i eligible for your company

2172


What is ctrl c called?

1002


What are the advantages and disadvantages of a heap?

1147


What is the acronym for ansi?

998


What is include directive in c?

1092


Give me the code of in-order recursive and non-recursive.

1320


What should malloc() do?

1101


What is extern variable in c with example?

950


What is the general form of a C program?

978


What is the translation phases used in c language?

1060


What is c++ used for today?

1061


Is c procedural or functional?

979


What is the right way to use errno?

1003