You are viewing a single comment's thread. Return to all comments →
C (with broken Test Case 1):
for (int i = n - 1; i >= 0; i--) { printf("%d ", arr[i]); } return 0;
Note that the statement below had to be removed in order to satisfy Test Case 1, which is the only test case input to include a null terminator.
if (arr_item_endptr == arr_item_str || *arr_item_endptr != '\0') { exit(EXIT_FAILURE); }
Seems like cookies are disabled on this browser, please enable them to open this website
Day 7: Arrays
You are viewing a single comment's thread. Return to all comments →
C (with broken Test Case 1):
Note that the statement below had to be removed in order to satisfy Test Case 1, which is the only test case input to include a null terminator.