From 442a49ad5a48d417345959b903ae6a6d32d55759 Mon Sep 17 00:00:00 2001 From: Haidong Ji Date: Fri, 15 Apr 2022 15:51:30 -0500 Subject: Great C programming fun Excellent fundamentals and displine training, many tools and techniques exercises: gdb, emacs, valgrind, git --- 14_array_max/README | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 14_array_max/README (limited to '14_array_max/README') diff --git a/14_array_max/README b/14_array_max/README new file mode 100644 index 0000000..e98f467 --- /dev/null +++ b/14_array_max/README @@ -0,0 +1,16 @@ + 1. Open the provided arrayMax.c file and write + the function: + int * arrayMax(int * array, int n); + which returns a pointer to the largest element + in the array passed in (whose length is n). + If the array has no elements (n is 0), this function + should return NULL. + + 2. Compile and test your code. + We have provided a main function which will print test cases + and your function's answer for them. You should get + 99, -3, 425, NULL, and NULL for the 5 test provided. + + 3. Submit your code. + + -- cgit v1.2.3