main()
{int a=200*200/100;
printf("%d",a);
}
Answer Posted / tanvi jain
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 ? | 0 Yes | 0 No |
Post New Answer View All Answers
Write a program in c to replace any vowel in a string with z?
How can I call a function with an argument list built up at run time?
What is c variable?
What is maximum size of array in c?
Explain how are 16- and 32-bit numbers stored?
What does == mean in texting?
What are the advantages of external class?
Which built-in library function can be used to match a patter from the string?
How do you sort filenames in a directory?
program to find out date after adding 31 days to a date in the month of febraury also consider the leap year
Why is c platform dependent?
Difference between exit() and _exit() function?
How is a macro different from a function?
Explain argument and its types.
Explain the difference between strcpy() and memcpy() function?