1:06 AM Program to interchange the values of two variables |
Programs in C++ Program to interchange the values of two variables
#include <iostream.h> #include <conio.h> Void swap(int,int); Void main() { clrscr(); swap(a,b); cout<<”a = “<<a<<” b= “ <<b; } Void swap(int x,int y) { Int t; t=x; x=y; y=t; } |
|
Total comments: 0 | |