Computer Science, asked by fluffystrawberrywolf, 7 hours ago

write a c program to interchange the values of a and b,if a =10 and b=5
please tell fast​

Answers

Answered by dharshuartwith
1

Answer:

#include<stdio.h>

void main()

{

int a=10,b=5;

b=a+b;

a=b-a;

b=b-a;

printf("%d%d",a,b);

Explanation:

a=10 b=5

b=a+b=15

a=b-a=15-10=5

b=b-a=15-5=10

HOPE YOU WILL UNDERSTAND

Similar questions