Declaring "index" above case

I declared ‘int index;’ above the switch without giving it a value.
seems to work ok.

1 Like

Privacy & Terms