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...
Type: Posts; User: 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...