C ++ 11 auto variable initialized by nullptr

What is the type of the "something" variable in the C ++ 11 standard initialized with

auto something = nullptr;

?

+4
source share
1 answer

A type std::nullptr_tthat is a single-valued type introduced in C ++ 11 to represent a null pointer and which is implicitly converted to any other type of pointer.

+11
source

All Articles