What is the difference between using a pointer and using a reference?
e.g.:
int K;
int*p=&k ;
&ref=k;
(both *p=20; and ref=20; will assign the value 20 into the variable k)
thanks for ur time and help.
~ayesha~
What is the difference between using a pointer and using a reference?
e.g.:
int K;
int*p=&k ;
&ref=k;
(both *p=20; and ref=20; will assign the value 20 into the variable k)
thanks for ur time and help.
~ayesha~