In the following code :
what's the difference between int and int& ?
and what does it mean ??
i got something that n2 and n3 are changed only but not n1 and n4 !! is that related to (int& ) ??
#include <iostream>
using namespace std;
void change(int,int&,int&,int)
int main()
{
int n1=99,n2=11,n3=22,n4=88;
change(n1.n2,n3,n4)
cout<<"n1="<<n1<<endl;
cout<<"n2="<<n2<<endl;
cout<<"n3="<<n3<<endl;
cout<<"n4="<<n4<<endl;
return 0;
}
void change(int n4,int& n3,int& n2,int n1)
{
n1=10;n2=20;n3=30;n4=40;
}