Home
Sitemap
Comment policy
TIPSZON - Tips For Career
Home
Computer Science
Placement Guidance
GATE-CSE
Amazon-CSA
Privacy Policy
Disclaimer
Terms and Condition
About
Home
Technology
C program to swap two numbers without using third variable
C program to swap two numbers without using third variable
by
Shivam verma
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
Social Plugin
Categories
AI
2
Amazon Cloud Support Associate
7
Android
4
AWS
4
AWS Interview
2
Blogging
9
Blogging Hindi
15
Blogspot
8
C-Programs
11
ChatGPT
3
Cloud Computing
5
Communication
18
computer basics
5
Computer science
40
Computer tricks
7
Courses
2
Data structures
1
Discipline
1
English Speaking
18
Fresher
6
GATE
3
GATE-Computer Networks
1
How to
16
HR Interview
10
Job Interview
11
Jobs
13
Life tips
32
Mindset
9
Motivation
24
Personality development
37
Placement Guidance
9
Procrastination
2
Programming
19
Python Programming
4
Python Programs
1
Python-NumPy
2
Quotes
8
Quotes Explanation
7
Resolution
2
Self Introduction
1
Social Media
2
STAR Method
1
Study Material
3
Study tips
21
Technology
39
Time
3
Time Management
2
Web Development
4
What IS
12
Work From Home
1
0 Comments
If you have any doubts, Please let me know