Programming in C
By Pulkit Chitkara
Google analytics
Pages
Home
Programs
About Me
Saturday, August 27, 2011
Swaping in c
/* Interchange between two integer */
#include
<stdio.h>
int
main()
{
int a
= 23,
b
= 47;
int
t;
printf("Before. a: %d, b: %d\n", a, b);
t = a;
a = b;
b = t;
printf("After.
a: %d, b: %d\n", a, b);
return
0;
}
No comments:
Post a Comment
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment