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

which of the following go out of the loopo if expn 2 becoming false a.while(expn 1){...if(expn 2)continue;} b.while(!expn 1){if(expn 2)continue;...} c.do{..if(expn 1)continue;..}while(expn 2); d.while(!expn 2){if(expn 1)continue;..}

4 Answers   TCS,


whether itis a structured language?

1 Answers   Microsoft,


print ur name 20,000 times without using inbuilt library functions like printf,scanf,gets,puts,getchar or putchar

4 Answers   IBM,


List the difference between a While & Do While loops?

0 Answers   Accenture,


program to find middle element of linklist?

1 Answers   Huawei,






what is the size of an integer variable?

4 Answers  


Write a program to print the prime numbers from 1 to 100?

7 Answers  


What will be your course of action for a push operation?

0 Answers  


? ???Mirror Mirror on the wall????????

1 Answers   channel V, DPI,


Write a program to interchange two variables without using the third variable?

17 Answers   Accenture, College School Exams Tests, Infotech,


What is an volatile variable?

15 Answers   HP,


What is c language in simple words?

0 Answers  


Categories