+ 2

Please someone explain me the concept of pointers with offset.

2nd Mar 2019, 1:46 PM
S.K
2 Réponses
+ 4
A pointer is an address of a variable. When you offset a pointer by a positive number, you increment that address by that number of units where the size of a unit is the size of the type of variable that you are pointing to.
5th Mar 2019, 5:50 AM
Sonic
Sonic - avatar
+ 4
And that's why array works by reference. The name of an array holds the pointer to the address of the first element.
5th Mar 2019, 5:54 AM
Abel Dagnew
Abel Dagnew - avatar