Q:

It is important to understand that when we define a pointer in a constexpr declaration, the constexpr specifier applies to the pointer, not the type to which the pointer points

0

It is important to understand that when we define a pointer in a constexpr
declaration, the constexpr specifier applies to the pointer, not the type to which the pointer points.

All Answers

need an explanation for this answer? contact us directly to get an explanation for this answer

const int *p = nullptr; // p is a pointer to a const int
constexpr int *q = nullptr; // q is a const pointer to int

need an explanation for this answer? contact us directly to get an explanation for this answer

total answers (1)

Similar questions


need a help?


find thousands of online teachers now