Hi,
here is the problem in 'c' which was asked in an interview
main()
{
int i = 4;
int j = 5;
swap(1,j);
printf(" %d %d " , i,j)
}
its output is 4 5
but I want 5 4 without changing above four lines.
so, write swap function in 'c' to get output 5 4
Start Free Trial