C Language| C Programs | Data structures Basics |C Language Example Programs
C Language , C Programs, Data Structures, Simplified C programs, easy C programs
Search This Blog
Tuesday, April 21, 2015
C Program to interchange the value of two variables without using third variable
C Program to interchange the value of two variables without using third variable. C Programming. Interchanging Variables.
#include <stdio.h>
void main()
{
int a,b;
a=20, b=30;
b=a+b;
a=b-a;
b=b-a;
printf("a=%d b=%d", a,b);
}
No comments:
Post a Comment
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment