enter image description here
This’s an error
I used:
int i = 5;
int n[i]={0};
then I got an error “Variable-sized object may not be initialized”
but if I use int n[10] = {0};
, It’s ok
New contributor
Cương Võ is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
3