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

Differentiate between null and void pointers.

1186


Describe newline escape sequence with a sample program?

1136


What is pointer to pointer in c language?

1162


4-Take two sets of 5 numbers from user in two arrays. Sort array 1 in ascending and array 2 in descending order. Perform sorting by passing array to a function mySort(array, sortingOrder). Then multiply both the arrays returned from function, using metric multiplication technique in main. Print result in metric format.

2198


What is putchar() function?

1180


What is getch?

1210


How to write c functions that modify head pointer of a linked list?

1006


the portion of a computer program within which the definition of the variable remains unchanged a) mode b) module c) scope d) none

1072


C program to find all possible outcomes of a dice?

2379


What is function in c with example?

1179


What is function prototype?

1160


Explain how can I manipulate strings of multibyte characters?

1218


What does 2n 4c mean?

1250


Explain what happens if you free a pointer twice?

1101


How are Structure passing and returning implemented by the complier?

1186