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
What is the use of bit field?
Write a program to print ASCII code for a given digit.
Explain how do I determine whether a character is numeric, alphabetic, and so on?
What is %d called in c?
What are multibyte characters?
What is struct node in c?
How do you define a function?
What is c method?
How can you avoid including a header more than once?
What is oops c?
Explain b+ tree?
Explain data types & how many data types supported by c?
Explain the advantages and disadvantages of macros.
What does return 1 means in c?
FILE PROGRAMMING