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
What does char * * argv mean in c?
What are integer variable, floating-point variable and character variable?
How will you find a duplicate number in a array without negating the nos ?
What is the description for syntax errors?
where are auto variables stored? What are the characteristics of an auto variable?
What is an example of structure?
Write a program to print numbers from 1 to 100 without using loop in c?
What are the benefits of organizational structure?
How do I round numbers?
All technical questions
What is the function of volatile in c language?
Explain how can you tell whether two strings are the same?
Where can I get an ansi-compatible lint?
What is the method to save data in stack data structure type?
What are the different categories of functions in c?