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 / tanvi jain

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 ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Explain what is gets() function?

1076


What should malloc() do? Return a null pointer or a pointer to 0 bytes?

1075


How can I find out how much free space is available on disk?

1057


In the DOS enveronment, normal RAM that resides beyond the 1mb mark. a) expanded memory b) swapped memory c) Extended memory d) none

1203


How do you redirect a standard stream?

1108


Do pointers take up memory?

1159


What is a stream in c programming?

1150


Is printf a keyword?

1201


Can we initialize extern variable in c?

1136


How can I convert a number to a string?

1189


There is a practice in coding to keep some code blocks in comment symbols than delete it when debugging. How this affect when debugging?

1301


Write a program to generate the Fibinocci Series

1238


How do we declare variables in c?

1070


Is null a keyword in c?

1196


How are Structure passing and returning implemented by the complier?

1169