This question already has answers here:
http://stackoverflow.com//questions/40987901/what-happens-to-uninitialized-variables-c”>What happens to uninitialized variables? C++ (3 answers)
http://stackoverflow.com//questions/30172416/uninitialized-variable-behaviour-in-c”>Uninitialized variable behaviour in C++ (4 answers)
http://stackoverflow.com//questions/6032638/default-variable-value”>Default variable value (8 answers)
Closed 12 hours ago.
For example, if I have:
int num;
double num2;
int* ptr;
Are these variables just randomly allocated some memory?
Please login or Register to submit your answer