Home
About Us
Contact
Disclaimer
Privacy policy
Comment policy
Sitemap
Terms and conditions
TIPSZON
Home
Blogspot
Computer Science
Study tips
Motivation
Home
Technology
C program to swap two numbers without using third variable
C program to swap two numbers without using third variable
Shivam verma
Thursday, May 20, 2021
#include<stdio.h>
int main()
{
int a = 10;
int b = 20;
printf("Before swap a=%d b=%d\n",a,b);
a = a+b;
b = a-b;
a = a-b;
printf("\nAfter swap a=%d b=%d\n",a,b);
return 0;
}
Post a Comment
0 Comments
Categories
Amazon Cloud Support Associate
5
Android
4
Blogging
9
Blogspot
8
C-Programs
11
computer basics
4
Computer science
31
Computer tricks
6
Courses
2
Data structures
1
GATE
2
GATE-Computer Networks
1
How to
3
Life tips
22
Motivation
10
Personality development
23
Placement Guidance
6
Programming
19
Python Programming
4
Python Programs
1
Python-NumPy
2
Study Material
3
Study tips
12
Technology
25
Web Development
4
Popular Posts
How to prepare for Amazon Cloud Support Associate Role - Preparation Journey
Monday, March 07, 2022
How to Prepare for college Placements | General discussion about placements | CSE & IT
Friday, June 24, 2022
Asked Computer Network questions in Amazon Cloud Support Associate Interview
Friday, March 04, 2022
0 Comments