Passing array to another function
Hi guys, just want to verify about passing an array to another function.
lets assume I've an array and I want to pass it to another function, is it enough to just pass the pointer of it "arr1" ?
more over I'm curious if I could also pass instead of "arr1" , "arr1+3" then the other function gets as input pointer "arr1+3" .. can I then inside the other function do any manipulation on array "arr1" starting from arr1 and not from arr1+3? meaning for instance yes I have in the other function the pointer starting from arr1+3 , I can inside the other function do a subtraction of it (arr1+3)-3 then I would get the pointer arr1 which is the array itself !, in other words whenever I have pointer to array doesn't matter from which elements it points .. then I can do manipulation on the whole array by just having one of the array "pointers"(meaning any pointer of the array that points on element).
to sum up, pointers in C not just acting as pointers sometimes acting like elements itself for example in strings the pointer is also a string itself.... am I right?!
thanks beforehand !