+ 1
Matrix Operation with Pointer
Hi Friends, This was a questions in a challenge.Can you explain the parts with * and adding them? Thanks https://code.sololearn.com/cCAjE3iaf9Yc/?ref=app
2 Respuestas
+ 1
*ptr gives you a value that pointer ptr points to.
*(ptr + 1) gives you the value of second item in the array
Two dimensional arrays could be considered as pointer to pointers.
Array name is also a pointer to its first item.
0
First addition is for column, secondary one for row.