PREV INDEX NEXT

Author: Unknown
Subject: returning an array
Date: Wednesday, 12 Feb 2020, 13:08:15

usually we return an array in c using pointers. Since we can't use pointers, and you said we didn't really need to use global variables, how do return multiple values from a function? For example, if I want to use one sorting algorithm in hw2 for both ffd and opt, I would have to return a sorted array of items to be then used in either function.
PREV INDEX NEXT