What Exactly Is nullptr in C++by@IndianWestCoast
4,220 reads
4,220 reads

What Exactly Is nullptr in C++

by Vishal Chovatiya6mApril 25th, 2020
Read on Terminal Reader
Read this story w/o Javascript
tldt arrow

Too Long; Didn't Read

Nullptr is more than just a keyword in C++ & to explain that, I have written this article. This article is more or less the same thing which you can find here, here & in nullptr proposal(N2431) But before jump-into it, we will see issues with NULL & then we'll dive into the unsophisticated implementation of nullptr. Nullptr cannot be defined as (void*)0 in the C++ standard library. Null pointer is a subtle example of Return Type Resolver idiom to automatically deduce a null pointer of the correct type depending upon the type it is assigning to.

Company Mentioned

Mention Thumbnail
featured image - What Exactly Is nullptr in C++
Vishal Chovatiya HackerNoon profile picture
Vishal Chovatiya

Vishal Chovatiya

@IndianWestCoast

Software Developer⌨, Fitness Freak🏋, Geek🤓, Hipster🕴, Blogger👨‍💻, Productivity Hacker⌚

Learn More
LEARN MORE ABOUT @INDIANWESTCOAST'S
EXPERTISE AND PLACE ON THE INTERNET.

Share Your Thoughts

About Author

Vishal Chovatiya HackerNoon profile picture
Vishal Chovatiya@IndianWestCoast
Software Developer⌨, Fitness Freak🏋, Geek🤓, Hipster🕴, Blogger👨‍💻, Productivity Hacker⌚

TOPICS

THIS ARTICLE WAS FEATURED IN...

Permanent on Arweave
Read on Terminal Reader
Read this story in a terminal
 Terminal
Read this story w/o Javascript
Read this story w/o Javascript
 Lite
L O A D I N G
. . . comments & more!