in Programming in C
546 views
0 votes
0 votes

My answer is 42 but given answer is 2018 please explain how ?

in Programming in C
546 views

4 Comments

.....Debug the code segment carefully....

here mystrey function is not doing any thing....

mystrey(&a,&b)....

here address of a and b would be transered to the tempa and tempb and then the value of tmpa and tempb is swapped not real address...

0
0
Thanku bro now I got
0
0

This question is just copied from gate 2016 question..

https://gateoverflow.in/39642/gate-2016-1-15

0
0

1 Answer

0 votes
0 votes
2018 is the answer . mystery function do nothing because pointer is not associated with ptra and ptrb.

Related questions