Scalar Scale & Locate
Challenge on lesson: Checkpoint: Pointers & Arrays
CHALLENGE
Difficulty: beginner+25 XP
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).
Press Submit to check your solution.
Back to lesson: Checkpoint: Pointers & Arrays