Pointers and references: Difference between revisions

→‎{{header|C++}}: pointer=0 is not C++ specific
(→‎{{header|C}} and {{header|C++}}: other forms of assignment of null pointer)
(→‎{{header|C++}}: pointer=0 is not C++ specific)
Line 69:
C++ specific alternative to "The following code creates a pointer to an int variable":
int* pointer2(&var);
 
C++ specific alternative to "Change the pointer to not point to any object":
pointer = 0;
 
'''With references:'''
973

edits