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 / k.thanigaivel

This output is
4 2 4

Explanation:
sizeof('1 or 2 or 3,......or n')=4

sizeof("0")=2
sizeof("10")=3
sizeof("100")=4
sizeof("1000")=5
sizeof("10000")=6
.
.
.
.
.
sizeof("n")=n

sizeof(1 or 2 or 3......or n)=4

Is This Answer Correct ?    27 Yes 25 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How can I get back to the interactive keyboard if stdin is redirected?

1132


What are external variables in c?

1034


why wipro wase

2245


a c variable cannot start with a) an alphabet b) a number c) a special symbol d) both b and c above

1166


What does c mean before a date?

1098


how to find binary of number?

4333


What is structure padding and packing in c?

1002


how to count no of words,characters,lines in a paragraph.

4376


What is a void pointer? When is a void pointer used?

1018


If i have an array 0 to 99 i.e,(Size 100) I place the values 1 to 100 randomly like a[0]=29,a[1]=56 upto array[99].. the values are only between 1 to 100. getting the array values by using scanf.. If i entered one wrong element value line a[56]=108. how can i find it.. and also how to find the missing value in 1 to 100.. and i want to replace the missing values.. any one of them know please post your answer..

1982


The __________ attribute is used to announce variables based on definitions of columns in a table?

1125


What is a good way to implement complex numbers in c?

991


what are # pragma staments?

1996


What is variable initialization and why is it important?

1160


Why enum is used in c?

893