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
What are the different types of endless loops?
How do you define CONSTANT in C?
Can a program have two main functions?
Write a code on reverse string and its complexity.
What is the use of function in c?
Write a program to print numbers from 1 to 100 without using loop in c?
What are structural members?
show how link list can be used to repersent the following polynomial i) 5x+2
What are categories used for in c?
What are inbuilt functions in c?
What is meant by operator precedence?
while initialization of array why we use a[][2] why not a[2][]...?
What is the data segment that is followed by c?
What is null pointer in c?
What is a pointer in c?