In c# when I write for example:
int age = 9;
age = age + 1
Why I get error in this case?
But if I write
age += 1
This works. Can someone explain please
Is this related to the compiler?
New contributor
Masoume Vatandost is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
3