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
Differentiate between null and void pointers.
Describe newline escape sequence with a sample program?
What is pointer to pointer in c language?
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.
What is putchar() function?
What is getch?
How to write c functions that modify head pointer of a linked list?
the portion of a computer program within which the definition of the variable remains unchanged a) mode b) module c) scope d) none
C program to find all possible outcomes of a dice?
What is function in c with example?
What is function prototype?
Explain how can I manipulate strings of multibyte characters?
What does 2n 4c mean?
Explain what happens if you free a pointer twice?
How are Structure passing and returning implemented by the complier?