C++: How to reset integers!?!?!?!?!?!?
How do you set integer to NULL in CPP. I can’t find an answer anywhere on the internet. PLEASE HELP ME!
Setting a pointer to NULL (nullptr) makes sense but setting an integer to NULL is a nonsense. int integer = 0; int *int_ptr = nullptr; //=NULL
Why would you set an integer to null?
NULL is not a number, but a pointer. For this reason int n=NULL; doesn't make sense
Avinesh I want to be able to give a new input, so basicaly reset it. (I know you can’t “reset” it)