skip to main | skip to sidebar

helpdesk

Saturday, October 11, 2008

Sample C Prog For Swapping


#include
#include
void main()
{
int a,b,c;
clrscr();
printf("the value of a,b is");
scanf("%d%d",&a,&b);
c=a;
a=b;
b=c;
printf("the value of a is %d,the value of b is%d",a,b);
getch();
}
Posted by Tushar V. Sambare at 12:29 AM

No comments:

Post a Comment

Newer Post Older Post Home
Subscribe to: Post Comments (Atom)

Blog Archive

  • ▼  2008 (10)
    • ▼  October (10)
      • Sample C prog For Demo Of Structure
      • Sample C Prog For Recursive Function
      • Sample C Prog For Prime Number
      • Sample C Prog For Swapping
      • Sample C prog. For Concatination of Strings
      • Sample C prog For Matrix Multiplication
      • Sample C Prog. For Calculator operations
      • Sample prog. Of C for Checking A Palindrome
      • Sample Program For Adding Elements into the Array
      • Sample program for Concatnating String Using Pointers

About Me

Tushar V. Sambare
"I am like open source code.."
View my complete profile