I think C99 standard allows this
or, since this is a c++ program, you might use a vectorCode:cin >> n; int salaryarray[ n ];
Code:cin >> n; vector<int> salaryarray(n);
I think C99 standard allows this
or, since this is a c++ program, you might use a vectorCode:cin >> n; int salaryarray[ n ];
Code:cin >> n; vector<int> salaryarray(n);