My answer is 42 but given answer is 2018 please explain how ?
.....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...
This question is just copied from gate 2016 question..
https://gateoverflow.in/39642/gate-2016-1-15
64.3k questions
77.9k answers
244k comments
80.0k users