Simple Array Sum

  • + 0 comments

    It's my solution in C++ but it's not working don't know why

    int simpleArraySum(vector ar) { int ans = 0; int size = sizeof(ar) / sizeof(ar[0]); for(int i=0; i