summaryrefslogtreecommitdiff
path: root/14_array_max/README
diff options
context:
space:
mode:
authorHaidong Ji2022-04-15 15:51:30 -0500
committerHaidong Ji2022-04-15 15:51:30 -0500
commit442a49ad5a48d417345959b903ae6a6d32d55759 (patch)
treec7127bb497e5e439018b1915e0136eec2c9cb124 /14_array_max/README
Great C programming funHEADmaster
Excellent fundamentals and displine training, many tools and techniques exercises: gdb, emacs, valgrind, git
Diffstat (limited to '14_array_max/README')
-rw-r--r--14_array_max/README16
1 files changed, 16 insertions, 0 deletions
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.
+
+