Search
 
SCRIPT & CODE EXAMPLE
 

CPP

c++ pointer null vs nullptr

NULL and nullptr are both considered 0, but

NULL = 0 (as an integer)
nullptr = 0 (as an pointer)
Comment

SET TO NULL pointer c++

*ptr=NULL; /*or*/ *ptr=0;
Comment

PREVIOUS NEXT
Code Example
Cpp :: arguments to a class instance c++ 
Cpp :: define unicode c++ 
Cpp :: c++ check if vector is sorted 
Cpp :: c++ nagetive to positive numbers 
Cpp :: c++ char it is a number 
Cpp :: do while loop c++ loops continuously 
Cpp :: error: Microsoft Visual C++ 14.0 or greater is required. Get it with "Microsoft C++ Build Tools": https://visualstudio.microsoft.com/visual-cpp-build-tools/ 
Cpp :: how to change a value from an array c++ 
Cpp :: string to long integer c++ 
Cpp :: c++ multidimensional vector 
Cpp :: c++ find_if 
Cpp :: how to scan array in c++ 
Cpp :: when was c++ created 
Cpp :: clear the input buffer in cpp 
Cpp :: cpp cin 
Cpp :: c++ iterate over vector of pointers 
Cpp :: swapping of two numbers 
Cpp :: tolower funciton in cpp 
Cpp :: uses of gamma rays 
Cpp :: insert only unique values into vector 
Cpp :: how to use cout function in c++ 
Cpp :: deep copy c++ 
Cpp :: untitled goose game 
Cpp :: factorial loop c++ 
Cpp :: how to add c++14 in sublime text 
Cpp :: convert 2d array to 1d c++ 
Cpp :: classes constructor in c++ 
Cpp :: iterate vector c++ 
Cpp :: reversing a string in c++ 
Cpp :: min element in vector c++ 
ADD CONTENT
Topic
Content
Source link
Name
8+5 =