Learn To Program
Increase Your Knowlegde and Build Your Skill!
Pages
(Move to ...)
Home
Me
▼
Friday, March 11, 2011
CPP - Reference Variable
#include <iostream>
using namespace std;
int main()
{
// b is an alias of a
int a, &b = a;
b = 9;
cout << a << endl;
return 0;
}
No comments:
Post a Comment
‹
›
Home
View web version
No comments:
Post a Comment