If I don\'t assign a value to a variable when I declare it, does it default to zero or just whatever was previously in the memory?
e.g.
float x;
C++ does not instantiate variables. The value of x is whatever happened to be in the memory at the time. Never assume anything about its initial value.