There is a difference between initializing a variable and creating a variable.
// Create variables
int firstInt; // This variable was just created not initialized
int secInt = 100; // This...
Type: Posts; User: Ubiquitous
There is a difference between initializing a variable and creating a variable.
// Create variables
int firstInt; // This variable was just created not initialized
int secInt = 100; // This...
Those lines are very descriptive in the error itself. Both are initialized within the while loop but what happens if the condition in the while loop is not met? Those values will never be initialized...