suppose that I have a pointer called P with float type which is points to some values. I want to creat another pointer called Ptr to go through where the P is pointing to and return the last element. How Can I do that?
this is what I tried until now...
float *p;
float *ptr;
for(int i=0; i< sizeof p; i++){
ptr++;
return &ptr;
}
is that correct? sorry that my question is basic.