Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...


main()
{int a=200*200/100;
printf("%d",a);
}

Answers were Sorted based on User's Feedback



main() {int a=200*200/100; printf("%d",a); }..

Answer / 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

main() {int a=200*200/100; printf("%d",a); }..

Answer / vignesh1988i

output is : 400

Is This Answer Correct ?    37 Yes 18 No

main() {int a=200*200/100; printf("%d",a); }..

Answer / 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

main() {int a=200*200/100; printf("%d",a); }..

Answer / deepak roniya

explanation 7 is right......i also run this program and the
result is -255

Is This Answer Correct ?    11 Yes 1 No

main() {int a=200*200/100; printf("%d",a); }..

Answer / sreepal

-255

Is This Answer Correct ?    6 Yes 1 No

main() {int a=200*200/100; printf("%d",a); }..

Answer / vivek shah

because
int range 32767 to -32768
200*200=4000;
so out of range

-255

Is This Answer Correct ?    2 Yes 0 No

main() {int a=200*200/100; printf("%d",a); }..

Answer / shafi

int a=200*200/100;/*it is related with assignment operator so
it's right->left shift*/
=200*2;
=400;
the value of a=400

Is This Answer Correct ?    1 Yes 0 No

main() {int a=200*200/100; printf("%d",a); }..

Answer / 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

main() {int a=200*200/100; printf("%d",a); }..

Answer / xxxxxxx

among '* ','/' arithematic operators / has a higher
precedence.so 200/100 is enclosed in brackets and multiplied
with 200
so a=200*(200/100)=200*2=400

Is This Answer Correct ?    0 Yes 1 No

main() {int a=200*200/100; printf("%d",a); }..

Answer / pawan singh

400

Is This Answer Correct ?    12 Yes 14 No

Post New Answer

More C Interview Questions

Explain about block scope in c?

0 Answers  


what is ram?

3 Answers   TCS,


What is the condition that is applied with ?: Operator?

0 Answers  


Write the syntax and purpose of a switch statement in C.

0 Answers   Adobe,


How to write in a function declaration and in function call in which the function has 'n' number of varible or arguments?

2 Answers  


Why does not c have an exponentiation operator?

0 Answers  


The C language terminator is a.semicolon b.colon c.period d.exclamation mark

6 Answers   TCS,


How can you check to see whether a symbol is defined?

0 Answers  


What is false about the following A compound statement is a.A set of simple statments b.Demarcated on either side by curly brackets c.Can be used in place of simple statement d.A C function is not a compound statement.

5 Answers   CCEM, TCS,


What is scope rule in c?

0 Answers  


What is %lu in c?

0 Answers  


will the program compile? int i; scanf(ā€œ%dā€,i); printf(ā€œ%dā€,i);

3 Answers  


Categories