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

what is self refrential structure

3 Answers   HCL,


‎How to define structures? · ‎

0 Answers  


Should a function contain a return statement if it does not return a value?

0 Answers  


What is static volatile in c?

0 Answers  


The differences between Windows XP and Windows Visa

8 Answers   HCL,


What is the general form of function in c?

0 Answers  


how to find the given number is prime or not?

6 Answers   IMS, ING,


main() { int i,n=010; int sum=0; for(i=1;i<=n;i++) {s=s+i; } printf("%d",&s); getch(); }

6 Answers  


What would the following code segment printint k = 8;docout << "k = " << k << " ";while k++ < 5; a) 13 b) 5 c) 8 d) pointers

0 Answers  


Is it better to bitshift a value than to multiply by 2?

0 Answers  


Dear Sir, we are required the bubble sorting programs Regs Prem

1 Answers  


a C prog to swap 2 no.s without using variables just an array?

5 Answers   TCS,


Categories