Practice · 3 of 4
Inventory Value
CHALLENGE
Difficulty: beginner+25 XP
Given struct Item { int qty; int unit_cost; }; in scope, implement long inventory_value(const struct Item *items, int n) summing qty*unit_cost over n items.
Press Submit to check your solution.
Back to lesson: Practice: Mutating Operations