a=5
a=a++/++a

Answers were Sorted based on User's Feedback



a=5 a=a++/++a..

Answer / rukmanee

a=.83

Is This Answer Correct ?    1 Yes 5 No

a=5 a=a++/++a..

Answer / purvi

a=-12

Is This Answer Correct ?    1 Yes 7 No

a=5 a=a++/++a..

Answer / aa

A

Is This Answer Correct ?    0 Yes 6 No

a=5 a=a++/++a..

Answer / abhi

answer is 6 because
a=a++/++a
i.e.=
5=5/5+1
hence 6=5/6
5*6=5
30/5=6
reason is that the post increment increment after process
but pre increment increment before the process so th value
is increment before the process

Is This Answer Correct ?    1 Yes 10 No

Post New Answer

More C Interview Questions

What are the application of c?

0 Answers  


write a c program for greatest of three numbers without using if statment

4 Answers   IBM,


Write a program that takes a 5 digit number and calculates 2 power that number and prints it

5 Answers   ABS, Accenture, HCL, Infosys, Infotech, SoftSolve, Software India, TCS, Vertex, Vimukti Technologies,


difference between loading and linking

1 Answers  


Why is void main used?

0 Answers  






How to find a missed value, if you want to store 100 values in a 99 sized array?

0 Answers   Honeywell, Zomato,


Result of the following program is main() { int i=0; for(i=0;i<20;i++) { switch(i) case 0:i+=5; case 1:i+=2; case 5:i+=5; default i+=4; break;} printf("%d,",i); } } a)0,5,9,13,17 b)5,9,13,17 c)12,17,22 d)16,21 e)syntax error

8 Answers   IBM,


What is output redirection?

0 Answers  


What is the difference between malloc() and calloc() function in c language?

0 Answers  


What is the need of structure in c?

0 Answers  


What does void main return?

0 Answers  


Are the variables argc and argv are local to main?

0 Answers   TISL,


Categories