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));
}

Answer Posted / hemachandar

the first ('3') value goes to char., so it takes 1.
then for second ("3") value takes the string., string value takes 2.
for third (3), its int., so it takes the value of 2.

Every printf takes the values from right to left, so it takes the output as 2 2 1.
Simple!!!

Is This Answer Correct ?    1 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is a substring in c?

1023


How to write a program for machine which is connected with server for that server automatically wants to catch the time for user of that machine?

2087


Explain how can you avoid including a header more than once?

1075


difference between native and cross compilers

2108


simple program of graphics and their output display

1979


What is linear search?

1124


Explain what is the benefit of using an enum rather than a #define constant?

1205


Why functions are used in c?

1115


How to Throw some light on the splay trees?

1049


What is the general form of a C program?

1015


Why does everyone say not to use scanf? What should I use instead?

1413


Who developed c language?

1072


Write a C program to count the number of email on text

1901


What do you understand by friend-functions? How are they used?

1193


Explain how are portions of a program disabled in demo versions?

1105