I am having trouble with pointers. Not really understanding what is going wrong with my code, but I am trying to print a running cost for an array...
Separate names with a comma.