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

Do you know what are the properties of union in c?

1131


Write a program to print numbers from 1 to 100 without using loop in c?

1139


What 'lex' does?

1231


Lists the benefits of c programming language?

1207


State the difference between realloc and free.

1148


Explain what are header files and explain what are its uses in c programming?

1205


What is the purpose of void pointer?

1103


c language supports bitwise operations, why a) 'c' language is system oriented b) 'c' language is problem oriented c) 'c' language is middle level language d) all the above

1102


pierrot's divisor program using c or c++ code

2286


What does %c mean in c?

1142


Are local variables initialized to zero by default in c?

1100


how to print the character with maximum occurence and print that number of occurence too in a string given ?

2534


Explain the use of function toupper() with and example code?

1172


What is the data segment that is followed by c?

1142


How can you tell whether a program was compiled using c versus c++?

1163