#include<iostream>
using namespace std;
void swap(int a, int b)
{
int temp;
temp=a;
a=b;
b=temp;
cout<<a<<" "<<b<<endl;
}
int main()
{
int x=10,y=20;
swap(x,y);
cout<<x<<" "<<y<<endl;
}
class Parent { public Parent() { System.out.println("Parent Constrcutor"); } } class Child extend...
No comments:
Post a Comment