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
in iso what are the common technological language?
What are inbuilt functions in c?
Write a program to generate the Fibinocci Series
How can I use a preprocessorif expression to ?
Differentiate between functions getch() and getche().
What is the ANSI C Standard?
write a progrmm in c language take user interface generate table using for loop?
Write a program to show the change in position of a cursor using c
#include
When we use void main and int main?
Why ca not I do something like this?
a linearly ordered set of data elements that have the same structure and whose order is preserved in storage by using sequential allocation a) circular b) ordinary c) array d) linear list
What is #define used for in c?
What is extern variable in c with example?
How is a macro different from a function?