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()
{int a=200*200/100;
printf("%d",a);
}

Answer Posted / vishi

200*200=40000;
as the range of int(-32768 to +32767)
40000 exeeds +32767 &hence goes to the other side,
40000-32767=7233;
now (-32768+7233)=(-25535);
hence the value of 40000 will be -25535;
result be (-25535/100)="-255"(integer value).

Is This Answer Correct ?    25 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is function prototype in c with example?

1167


What is the process to generate random numbers in c programming language?

1226


Is c is a middle level language?

1129


What is non linear data structure in c?

1081


How can a string be converted to a number?

1073


Why use int main instead of void main?

1185


Why c is called free form language?

1081


What are the characteristics of arrays in c?

1107


How can a program be made to print the name of a source file where an error occurs?

1272


How pointers are declared?

1013


Is null always defined as 0(zero)?

1179


What is identifier in c?

1067


Tell me when is a void pointer used?

1248


Explain what is operator promotion?

1157


Why doesnt that code work?

1281