I was just hoping if you could tell me if these two C statements are equivalent to one another.
Given the following definitions:
int ar[] = {1, 2, 4, 816};
int * ptr;
Consider the two statements
ptr = &ar [ 0 ];
ptr = ar;;
Are the two statements equivalent to one another? Please could you explain why they are OR why they are not?
Thanks.
Given the following definitions:
int ar[] = {1, 2, 4, 816};
int * ptr;
Consider the two statements
ptr = &ar [ 0 ];
ptr = ar;;
Are the two statements equivalent to one another? Please could you explain why they are OR why they are not?
Thanks.
