Defining and shaping a
int a=0,I;

Define and shape a and I;

Where a=0

That's right. If this statement is defined in a function (including the main function), it is not initialized, that is, the value of I is uncertain, but if this statement is not defined in the statement, the system will automatically initialize it to 0.