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?

Answers were Sorted based on User's Feedback



main() { printf("\n %d %d %d",sizeof('3'),sizeof("3"),sizeof(3)); }..

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

main() { printf("\n %d %d %d",sizeof('3'),sizeof("3"),sizeof(3)); }..

Answer / manik

1 2 4

Is This Answer Correct ?    9 Yes 20 No

Post New Answer

More C Interview Questions

write a c program to check weather a particluar bit is set or not?

5 Answers   IBM,


What is union and structure?

0 Answers  


Why do u use # before include in a C Progam?

9 Answers   IBM,


how to implement stack work as a queue?

2 Answers  


Which of the following operators is incorrect and why? ( >=, <=, <>, ==)

0 Answers  


What are the two forms of #include directive?

0 Answers   Aspire, Infogain,


What is modeling?

0 Answers  


char S; char S[6]= " HELLO"; printf("%s ",S[6]); output of the above program ? (0, ASCII 0, I,unpredictable)

7 Answers   Mascot,


what is a c-language.what is do.

4 Answers   HCL,


difference between my-strcpy and strcpy ?

3 Answers   Geometric Software, IIM, Infosys,


What is ## preprocessor operator in c?

0 Answers  


How can I return multiple values from a function?

6 Answers  


Categories