Computer Science, asked by jaikaran109, 8 months ago

write the code for swaping​

Answers

Answered by Anonymous
6

C program to swap two numbers with and without using third variable, using pointers, functions (Call by reference) and using bit-wise XOR operator. Swapping means interchanging. For example, if in a C program we have two variables a and b where a = 4 and b = 5, then before swapping a = 4, b = 5 after swapping a = 5, b = 4. In the first C program to swap numbers we will use a temporary variable to swap two numbers.

thanks.....

Similar questions