C#C
C#11mo ago
Faker

✅ Declaring and initializing multiple values in a single line in C#

Hello guys, consider the following statement:

int monsterHealth, heroHealth = 0;

If I write this code, heroHealth is assigned to 0, will this also assign monsterHealth to 0?
Was this page helpful?