Output dilemma for swapping

what will be the output for swap function call does values get swapped or remains same?we are printing the I and j value at main function after swap what gets printed?

hey Neha
Array remains Same ,
The swap function has only swapped local variables

My output was 10,30 before swap …n after swap function it remains same though

yes remains same, just changes in local variable of swap fun