C Declare Multiple Variables
Declare Multiple Variables
To declare more than one variable of the same type, use a comma-separated list:
Note: All variables must be of the same type. You cannot mix types in the same declaration.
You can also assign the same value to multiple variables at once:
Tip: Declaring multiple variables on one line is convenient, but declaring them on separate lines can make your code easier to read.