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

200*200/100

here both *,% contained same priority and also left->right
shift so the excusion will start from left->right so answer is
400.

Is This Answer Correct ?    4 Yes 8 No

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

Answer / ismail

400

Is This Answer Correct ?    7 Yes 12 No

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

Answer / rukmanee

int a=200*200/100;
=200*2;
=400;
the value of a=400

Is This Answer Correct ?    1 Yes 7 No

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

Answer / jaga

a=200*200
=40000/100
=400
a=400

Is This Answer Correct ?    7 Yes 16 No

Post New Answer

More C Interview Questions

What is the difference between big endian form and little endian form? write a code to convert big endian form to little endian and vice versa..

5 Answers   Aricent, TCS,


What is sizeof int?

0 Answers  


What will be the output of following program #include main() { int x,y = 10; x = y * NULL; printf("%d",x); }

1 Answers  


Why is this loop always executing once?

0 Answers  


5) Write a program that takes a 3 digit number n and finds out whether the number 2^n + 1 is prime, or if it is not prime find out its factors.without using big int and exponential function

1 Answers   TCS,






where does malloc() function get the memory?

1 Answers  


void swap(int a,int b) { a=a+b; b=a-b; a=a-b; } in this code always gives the same result for all case

9 Answers   Accenture, TCS,


What is a pointer?

1 Answers   ADP, IFFCO,


How can I get Single byte from 'int' type variable? Can we alter single bit or multiple bits in int type variable? if so, How?

2 Answers  


Write a program using bitwise operators to invert even bits of a given number.

2 Answers  


What are inbuilt functions in c?

0 Answers  


What are keywords in c with examples?

0 Answers  


Categories