Using the variable max in the following way int max cin max
Using the variable max in the following way.
int max;
cin >> max;
double foo [max] = {0.0};
A. lets the user specify the arraya size during exection. B. will cause a run-time error. C. will cause a complier error. D. None of the above
Solution
it requires commna not a dot in between two zeros so it shows error message
option B is correct
![Using the variable max in the following way. int max; cin >> max; double foo [max] = {0.0}; A. lets the user specify the arraya size during exection. B. w Using the variable max in the following way. int max; cin >> max; double foo [max] = {0.0}; A. lets the user specify the arraya size during exection. B. w](/WebImages/18/using-the-variable-max-in-the-following-way-int-max-cin-max-1035407-1761537172-0.webp)
