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

What are the different types of endless loops?

1136


How do you define CONSTANT in C?

1370


Can a program have two main functions?

1184


Write a code on reverse string and its complexity.

1095


What is the use of function in c?

1255


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

1144


What are structural members?

1073


show how link list can be used to repersent the following polynomial i) 5x+2

2407


What are categories used for in c?

1157


What are inbuilt functions in c?

1084


What is meant by operator precedence?

1210


while initialization of array why we use a[][2] why not a[2][]...?

2406


What is the data segment that is followed by c?

1145


What is null pointer in c?

1051


What is a pointer in c?

1701