i'm new in C++.i am basically a C programmer.At present i'm learning about reference.It's very confusing.In C a pointer is the address of the variable and there is a difference b/w pointer and pointer variable.However many times pointer variable short-handed as pointer.
1.My question is that what is meant by reference then.In c++ are reference and address of variable means the same thing?If some one differentiate pointer from reference do he/she mean pointer variable and not pointer.They just written the pointer variable as pointer? If No then what is the difference b/w pointer and reference?
2.In C &a=b is illegal.But in C++ it is not.Why? please help as i am ver confused with it.I had searched about it but couldn't find the satisfactory answer.