skip to main
|
skip to sidebar
Pages
Home
Softwares
Videos
Books
Codes
Finishing School
To Grow in Subject
Ads 468x60px
Labels
C Tutorial
(16)
E-Books
(5)
First
(1)
Head First Books
(8)
How To
(2)
Program codes
(13)
Softwares
(1)
Tuesday, 11 September 2012
C code for swapping of two numbers without using 3rd varible,+,-,*,/
#include<stdio.h>
#include<conio.h>
void main()
{
int x,y;
clrscr();
printf("\n enter the elements\n");
scanf("%d%d",&x,&y);
printf("\n before swaping x=%d,y=%d",x,y);
x=x^y;
y=y^x;
x=x^y;
printf("\n after swaping x=%d y=%d",x,y);
getch();
}
Newer Post
Older Post
Home
Social Icons
General
C Tutorial
(16)
E-Books
(5)
First
(1)
Head First Books
(8)
How To
(2)
Program codes
(13)
Softwares
(1)
Blog Archive
►
2013
(1)
►
July
(1)
Jul 23
(1)
▼
2012
(46)
▼
September
(46)
Sept 17
(2)
Sept 13
(14)
Sept 12
(1)
Sept 11
(3)
Sept 06
(13)
Sept 05
(3)
Sept 04
(5)
Sept 03
(5)
Powered by
Blogger
.
Popular Posts
Object Oriented Programming With C++ By Balagurusamy
E. Balagurusamy Click here to download
Why Flow Chart ?
A flow chart is a graphical or symbolic representation of a process.
Switch Case control structure
SWITCH stmt is used for handling n number of decisions at a time. Hence it is also known as multi way decision making stmt. SWITCH ...
If else control structure
C uses the keyword if-else to implement the decision control instruction. Syntax if(test condition-1) { if( t...
Else-if Control Structure
Else-if: A Multipath decision is a chain of if s in which the statement associated with each else is an if. Syntax: if...
Head First Java
Click Here To Down lo ad Head First Java delivers a highly interactive, multisen...
Head First C#
You want to learn C# programming, but you're not sure you want to suffer through another tedious technical book. You're in luck: H...
Head First JavaScript
Want to make the leap from writing HTML and CSS web pages and create dynamic web applications? Want to take your web skills to the next l...
C Program for Factorial of a Number using Recursive Functiol
#include<stdio.h> #include<conio.h> long int factorial(int n); void main() { int n; clrscr(); printf("Enter the numb...
C Pattern code
#include<stdio.h> #include<conio.h> void main() { int i,j,k; clrscr();