WorldTimeTech
MENU
Home DoctorHealthTips Knowledge Wishes-massage Troubleshooting
Other
C Program Java Program Education Help JavaScript MovieNews paragraph Microprocessor Operating-System History of science Cgpa calculator
C program to swap two numbers without using a temporary variable

21 May, 2022

C program to swap two numbers without using a temporary variable

Write a C program to swap two numbers without using a temporary variable.


#include
int main()
{
 int num1=10,num2=20;
 num1=num1+num2;
 num2=num1-num2;
 num1=num1-num2;
 printf("After swap two numbers 
");
 printf("num1=%d , num2=%d ",num1,num2);
 return 0;
}

Related Content

C program to check a given number is even or odd using function
C program to check a given number is even or odd using function
C program to check a number is palindrome or not using function
C program to check a number is palindrome or not using function
C program to convert a number from binary to decimal format using function
C program to convert a number from binary to decimal format using function
C program to check whether a number is perfect or not using function
C program to check whether a number is perfect or not using function
C program to check whether a number is prime or not using function
C program to check whether a number is prime or not using function
Write a C program to print following pattern like when n = 5
Write a C program to print following pattern like when n = 5
C program read 20 number from user and find maximum minimum, sum, average
C program read 20 number from user and find maximum minimum, sum, average
C Program to Print Sum of n Natural Numbers Term Odd Natural Numbers Even Natural Number
C Program to Print Sum of n Natural Numbers Term Odd Natural Numbers Even Natural Number
C program to check if a given positive number is a multiple of 3 or a multiple of 7
C program to check if a given positive number is a multiple of 3 or a multiple of 7
Amazon Coupon Codes July 2025 – Save Up to 50% on Electronics, Fashion & More
Amazon Coupon Codes July 2025 – Save Up to 50% on Electronics, Fashion & More
Namecheap Promo Code 20% OFF – Save on Domains, Hosting & SSL (2025)
Namecheap Promo Code 20% OFF – Save on Domains, Hosting & SSL (2025)
Java Project HMS With Mysql Database
Java Project HMS With Mysql Database
Avatar Monkey Login Form Animated Design using HTML CSS JS with free source code
Avatar Monkey Login Form Animated Design using HTML CSS JS with free source code
Simple calculator program in java using swing
Simple calculator program in java using swing
3D translation using python in Computer Graphics
3D translation using python in Computer Graphics

Related Post

C program to check a number is palindrome or not using function
C program to check a number is palindrome or not using function
C program to convert a number from binary to decimal format using function
C program to convert a number from binary to decimal format using function
C program to check whether a number is perfect or not using function
C program to check whether a number is perfect or not using function
C program to check whether a number is prime or not using function
C program to check whether a number is prime or not using function
Write a C program to print following pattern like when n = 5
Write a C program to print following pattern like when n = 5
C program read 20 number from user and find maximum minimum, sum, average
C program read 20 number from user and find maximum minimum, sum, average
C Program to Print Sum of n Natural Numbers Term Odd Natural Numbers Even Natural Number
C Program to Print Sum of n Natural Numbers Term Odd Natural Numbers Even Natural Number
C program to check if a given positive number is a multiple of 3 or a multiple of 7
C program to check if a given positive number is a multiple of 3 or a multiple of 7
C program to find whether a given year is a leap year or not
C program to find whether a given year is a leap year or not

Tags Cloud

TopNews Health Lifestyle Technology ComputerTips DoYouKnow Job Java OpenBravo English Grammer JavaScript Trobleshoot
Our social account

[email protected]



Developed by TIS

Using any text or images from this website without permission is legal illegal and a punishable offense.

Importance matters

  • TopNews
  • Health
  • Life style
Information matters

  • Science & Tech
  • Computer
  • Do You Know
Our categories

WorldTimeTech provides Top News,Education, Health Tips, Lifestyle, Science and Technology, Computer Help Tips and Unknown facts and also more and more. We Always Try to Give You Helpful Content to you. Thank You...

Home English Hindi Terms & Conditions Privacy policy About us Contact us

Copyright © 2025 WorldTimeTech.com. All Rights Reserved.

WorldTimeTech