No Description

Marina Barsky 2fe7c0439a Update 'README.md' 2 years ago
include f50806bb24 exercise with tests 2 years ago
src f50806bb24 exercise with tests 2 years ago
test f50806bb24 exercise with tests 2 years ago
.drone.yml f50806bb24 exercise with tests 2 years ago
.gitignore f50806bb24 exercise with tests 2 years ago
LICENSE b9dea49621 Initial commit 2 years ago
Makefile f50806bb24 exercise with tests 2 years ago
README.md 2fe7c0439a Update 'README.md' 2 years ago

README.md

Point to largest

Exercise 11

In file src/largest.c implement function set_largest_ptr (int *A, int size, int **largest_ptr). Given an array A of size integers, this functions sets the address stored in largest_ptr to point to the element with the largest value.

If two or more elements share the same largest value, the address in largest_ptr should point to the earliest instance of the value.

Examples - *largest_ptr should point to the bolded value in each array

  • A[10] = {1, 2, 3, 4, 5, 6, 7, 8, 9, 10}
  • A[10] = {5, 5, 5, 5, 5, 5, 5, 5, 5, 5}