Home >> Sem 2 >> C++ programs >> REFVAR
#include<iostream.h> #include<conio.h> void main() { int b; clrscr(); int &a = b; b=10; cout<<"B : "<<b<<endl; b++; cout<<"A : "<<a<<endl; a++; cout<<"B : "<<b<<endl; getch(); }