Q6 Two numbers are input through the keyboard into two locations C and D. Write a program to interchange the contents of C and D.

Program: 56

Write a c program to swap two numbers without using third variables | Let Us C Solutions

Output:

Enter the value of C: 10
Enter the value of D: 20
 
 The value of C: 20
 The value of D: 10

Lokesh Kumar

Being EASTER SCIENCE's founder, Lokesh Kumar wants to share his knowledge and ideas. His motive is "We assist you to choose the best", He believes in different thinking.

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.