|
hi , am trying to swap(M,N) without using temp variable.
this is the question , i could attened the debuging context
#include<stdio.h>
void main()
{
int M = 5, N = 3;
printf("\nBefore Swap ");
printf("\n\tM=%d\tN=%d",M,N);
M = M + N;
N = M - N;
M = M - N;
printf("\nAfter Swap ");
printf("\n\tM=%d\tN=%d",M,N);
}
__________________
Regard\'s
Senthil Kumar M
(9841892000)
|