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

Get Help Now

Submit a Take Down Notice

Tutor
Tutor: Dr Jack
Most rated tutor on our site