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

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 (-24435/100)="-244"(integer value).
thank u

Is This Answer Correct ?    26 Yes 10 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How to declare pointer variables?

1170


What is a MAC Address?

1008


Can we declare function inside main?

949


Why main function is special give two reasons?

1484


Why do we need arrays in c?

1087


How do we make a global variable accessible across files? Explain the extern keyword?

1831


Difference between exit() and _exit() function?

1080


What are reserved words with a programming language?

1059


What is c definition?

1200


What is this infamous null pointer, anyway?

992


What is the use of sizeof?

971


What is the use of pragma in embedded c?

1006


How macro execution is faster than function ?

1135


Why isnt any of this standardized in c?

1023


What is meant by recursion?

1000