Swap of two numbers in c using pointers and functions
Answers
Answered by
1
Swapping of two numbers without third variable
#include <stdio.h>
int main()
{
int a, b;
printf("Input two integers (a & b) to swap\n");
scanf("%d%d", &a, &b);
a = a + b;
b = a - b;
Similar questions