✅ Declaring and initializing multiple values in a single line in C#
Hello guys, consider the following statement:
If I write this code, heroHealth is assigned to 0, will this also assign monsterHealth to 0?
int monsterHealth, heroHealth = 0;If I write this code, heroHealth is assigned to 0, will this also assign monsterHealth to 0?