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 will you divide two numbers in a MACRO?

1136


What does %d do?

1275


what is the differnce between programing langauge and tool? is sas is a programing langauge r tool?

2381


What are the types of pointers in c?

1026


How can you increase the size of a statically allocated array?

1081


How are strings stored in c?

1017


What are the advantages and disadvantages of pointers?

1070


what are the 10 different models of writing an addition program in C language?

1893


What is a sequential access file?

1173


What is the use of #define preprocessor in c?

1077


How can I generate floating-point random numbers?

1130


What is the difference between text files and binary files?

1349


Explain what is the concatenation operator?

1168


What are unions in c?

1028


Are local variables initialized to zero by default in c?

1051