CPP - Maximum Sunarray 1

The program explained in this video gives a garbage value when when the maximum sum of Sub-array is a negative number.

Please provide the correct code which gives the correct Maximum Sum when the actal maximum sum of Sub-array is a nugative number.

Also please explian the code​:pray::pray:

share the link of code

Please share the link of Code

How to Share Link of Code??

  1. paste your code at https://ide.codingblocks.com/

  2. click->file->save

  3. after a link will be generated at top in place of url something like: https://ide.codingblocks.com/s/12345

  4. share this link