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
What is the difference between #include
What is the correct declaration of main?
What is pre-emptive data structure and explain it with example?
What are the types of pointers?
What are header files why are they important?
In a switch statement, explain what will happen if a break statement is omitted?
hai iam working in sap sd module for one year and working in lumax ind ltd in desp department but my problem is i have done m.b.a in hr/marketing and working sap sd there is any combination it. can you give right solution of my problem. and what can i do?
Design a program which assigns values to the array temperature. The program should then display the array with appropriate column and row headings.
What is pointer and structure in c?
What is the difference between declaring a variable and defining a variable?
What does node * mean?
What are the uses of a pointer?
What is equivalent to ++i+++j?
What is the use of sizeof () in c?
#include