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
Why do we use static in c?
Explain the use of bit fieild.
What is the best way of making my program efficient?
What is new line escape sequence?
in any language the sound structure of that language depends on its a) character set, input/output function, its control structures b) character set, library functions, input/output functions its control structures c) character set, library functions, control sturctures d) character set, operators, its control structures
What the different types of arrays in c?
Why static is used in c?
explain what is fifo?
The % symbol has a special use in a printf statement. Explain how would you place this character as part of the output on the screen?
Who invented bcpl language?
What do you mean by a local block?
Write a C program in Fibonacci series.
What is a stream water?
What is sizeof return in c?
Can we use visual studio for c?