main()
{int a=200*200/100;
printf("%d",a);
}
Answer Posted / vishi
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 ? | 25 Yes | 2 No |
Post New Answer View All Answers
a=10;b= 5;c=3;d=3; if(a printf(%d %d %d %d a,b,c,d) else printf("%d %d %d %d a,b,c,d);
What is sizeof return in c?
What is the difference between break and continue?
How many types of errors are there in c language? Explain
What is switch in c?
What is the difference between procedural and functional programming?
FORMATTED INPUT/OUTPUT functions are a) scanf() and printf() b) gets() and puts() c) getchar() and putchar() d) all the above
Tell me the use of bit field in c language?
What is static identifier?
c program to compute AREA under integral
What is the basic structure of c?
Explain what’s a signal? Explain what do I use signals for?
What is pointer to pointer in c language?
What could possibly be the problem if a valid function name such as tolower() is being reported by the C compiler as undefined?
What is c basic?