Why this showing me run time error
@17manishms
hello manish,
a) u cannot declare that big size array.
- first read n and then declare array
- int n;
- cin>>n;
- int arr[n];
b) u should not initialise max with 0 . it will fail when all numbers of u aray will be negative
I hope I’ve cleared your doubt. I ask you to please rate your experience here
Your feedback is very important. It helps us improve our platform and hence provide you
the learning experience you deserve.
On the off chance, you still have some questions or not find the answers satisfactory, you may reopen
the doubt.