Skip to main content

Scalar Scale & Locate

Challenge on lesson: Checkpoint: Pointers & Arrays

Implement void scale(int *a, int n, int k) multiplying the first n elements by k IN PLACE, and const int* last_of(const int *begin, const int *end, int target) returning a pointer to the LAST occurrence of target (or end if absent).

Difficulty: beginner

Back to lesson: Checkpoint: Pointers & Arrays