Hello,
I have a question,
If I have a variable, such as a pointer, but I don't know if it is initialized. Is there any method to check this?
For example, it likes
1 2 3 4 5
int *ptr;
if (isInitializedPointer(ptr))
std::cout << "The pointer is available to use" << std::endl;
else
std::cout << "The pointer is not already initialized" << std::endl;