C Program to SWAP Two Numbers | Swapping Program in C language

Spread the love

/****************  Program ***************/

int a,b,temp;
printf(“Enter two no’s :”);

printf(“Values Before SWAPPING a : %d.. b: %d..n “,a,b);

temp = a;
a = b;
b = temp;

printf(“Values After SWAPPING a : %d.. b: %d..n “,a,b);


/********** OUTPUT *********/

Venkatesh Macha

Hi Guys, I am Venkatesh Macha. I am a programmer and an Open Source enthusiast, Presently working as a Software Engineer. Apart from that, I love to explore new technologies and things.

You may also like...

Leave a Reply