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


Please Help Members By Posting Answers For Below Questions

What is the difference between #include

and #include “header file”?

552


What is the correct declaration of main?

679


What is pre-emptive data structure and explain it with example?

3210


What are the types of pointers?

602


What are header files why are they important?

580






In a switch statement, explain what will happen if a break statement is omitted?

639


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?

1662


Design a program which assigns values to the array temperature. The program should then display the array with appropriate column and row headings.

1768


What is pointer and structure in c?

574


What is the difference between declaring a variable and defining a variable?

724


What does node * mean?

712


What are the uses of a pointer?

683


What is equivalent to ++i+++j?

643


What is the use of sizeof () in c?

558


#include { printf("Hello"); } how compile time affects when we add additional header file .

1424