Computer Science, asked by Aashif5696, 1 year ago

Swap of two numbers in c using pointers and functions

Answers

Answered by Anonymous
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