Cheat Sheet CS 31 Final
Cheat Sheet CS 31 Final
&a[0] + 2 = &a[2] 1. define another pointer to an array and use dereferencing to set value
2. *ptr + 3 != *(ptr+3)
2 = &a[2] - &a[0]
&a[0] = &a 3. function 里改变 pointer 要用&。
Class
an object the name of
C++11 and later: nullptr of some . a member of
c and c++: NULL struct type that type