Comma variable declarations simply let you declare a second variable of the same type. This is equivalent to:
int check = integer; int integer2;
Concerning:
//integer2 is not declared anywhere
Yes it is; Right here! This is an integer2 .
source share