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 are the advantages and disadvantages of a heap?
What are the types of data structures in c?
What are the different types of data structures in c?
Which is best linux os?
What is integer constants?
can we change the default calling convention in c if yes than how.........?
why arguments can generally be passed to functions a) sending the values of the arguments b) sending the addresses of the arguments c) a & b d) none of the above
Explain modulus operator. What are the restrictions of a modulus operator?
Which are low level languages?
How can I manipulate strings of multibyte characters?
When would you use a pointer to a function?
Write a program to swap two numbers without using the third variable?
What are linker error?
Draw a diagram showing how the operating system relates to users, application programs, and the computer hardware ?
What is the method to save data in stack data structure type?