they both ultimately do two things for your program
1. it declares the data type that you may want to use in this case int.
2. the value 10 becomes assigned to your invented identifier in this case its a.
They are two options with the same outcome. The c like variable initialization ( int a=10;) is more often used when your declaring local variables.