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
Explain what is gets() function?
What should malloc() do? Return a null pointer or a pointer to 0 bytes?
How can I find out how much free space is available on disk?
In the DOS enveronment, normal RAM that resides beyond the 1mb mark. a) expanded memory b) swapped memory c) Extended memory d) none
How do you redirect a standard stream?
Do pointers take up memory?
What is a stream in c programming?
Is printf a keyword?
Can we initialize extern variable in c?
How can I convert a number to a string?
There is a practice in coding to keep some code blocks in comment symbols than delete it when debugging. How this affect when debugging?
Write a program to generate the Fibinocci Series
How do we declare variables in c?
Is null a keyword in c?
How are Structure passing and returning implemented by the complier?