![]() |
a urgent reply needed
say the output for the following code with explanation how is it implemented inside the compiler : main() { int i=3,j; j=i++ + i++; printf("%d %d",i,j); } thanks in advance
|
Re: a urgent reply needed
My compiler (VS2008, debug,x86) implements it thus:
Code:
main() { int i=3,j; j=i++ + i++; printf("%d %d",i,j); } |
Re: a urgent reply needed
first thank u for ur effort........ Actually i dunno 8086 assembly programming , now only learning ... so only am not able to appreciate ur program.... can u pl. tell me the implementation more easily from the compiler point of view ??????:undecided:undecided
|
Re: a urgent reply needed
What is it you want to know? You've been told in another thread that expressions of this sort:
Code:
j=i++ + i++;There's no reason why any sane programmer would ever need to use such an expression. Why is this "urgent"? |
Re: a urgent reply needed
no no , actually i had a debugging test day before yest... that's why i put urgent.... and u are correct , it's purely compiler dependent ... i too saw today.......:pleased::pleased: in other compiler it's printing as 7........
thank u |
| All times are GMT +5.5. The time now is 22:00. |