문제

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

auto something = nullptr;

?

도움이 되었습니까?

해결책

The type of that is std::nullptr_t which is a single valued type introduced in C++11 to represent a null pointer and which is implicitly convertible to any other pointer type.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top