New course! Every coder should learn Generative AI!
Try a free lesson0
Can you assign a pointer to array?
4 Answers
+ 1
how
+ 1
e.g.
int a[10];
int *x=a;
then just access all elements by their displacement
if u want the 2nd value of the array then
cout<<*(a+2);
0
yes ofcourse
0
similar to the strings