Creating reference/alias variable

 


//reference variable


#include<iostream.h>

int main(int argc, char *argv[])

{

int a=123;

int& b=a;

b++;

a+8;

cout<<"a="<<a;

cout<<"\nb="<<b;

return 0;

}

Comments

Popular posts from this blog

stepper_28BY_and_with_driver_and-pic18f4550

Inductance caculator

polluted enviroment အဆိပ္သင့္ ရပ္ဝန္း