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 / raj

answer is :1 2 2 ;

size('3')means character constant so it is short int size it
will ocupi 1.

size("3")it will treated as string. 2

size(3) it is integer 2

Is This Answer Correct ?    9 Yes 19 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Explain the use of bit fieild.

1203


a value that does not change during program execution a) variabe b) argument c) parameter d) none

1296


Why is extern used in c?

1149


What is the purpose of clrscr () printf () and getch ()?

1115


What is the use of bitwise operator?

1176


What are different storage class specifiers in c?

1139


List some basic data types in c?

1084


Write a code to generate a series where the next element is the sum of last k terms.

1292


Explain what is the concatenation operator?

1236


How do you determine whether to use a stream function or a low-level function?

1193


What is merge sort in c?

1113


What does c in a circle mean?

1134


I was asked to write a program in c which when executed displays how many no.of clients are connected to the server.

2407


Dont ansi function prototypes render lint obsolete?

1201


What is the right way to use errno?

1120