Question.3
A developer shortens a deeply nested namespace:
namespace HW = Board::Drivers::Hardware; HW::gpio_set(PIN_5, HIGH);
What does this achieve?
Select Answer
Creates a copy of the Board::Drivers::Hardware namespace
Board::Drivers::Hardware
Creates an alias -- HW is a short name for the long namespace path, with zero runtime cost
HW
Merges Hardware into the global namespace
Creates a new namespace HW with its own scope