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 does char * * argv mean in c?

1004


What are integer variable, floating-point variable and character variable?

1185


How will you find a duplicate number in a array without negating the nos ?

2085


What is the description for syntax errors?

1099


where are auto variables stored? What are the characteristics of an auto variable?

1022


What is an example of structure?

984


Write a program to print numbers from 1 to 100 without using loop in c?

1030


What are the benefits of organizational structure?

975


How do I round numbers?

961


All technical questions

1924


What is the function of volatile in c language?

1073


Explain how can you tell whether two strings are the same?

974


Where can I get an ansi-compatible lint?

1101


What is the method to save data in stack data structure type?

1038


What are the different categories of functions in c?

1085