We have already created a namespace Config with two variables:
namespace Config { int baudRate = 9600; int threshold = 50; }
Your task is to:
Config
main()
Config::
The program should print:
Baud: 9600, Threshold: 50
Example
Output:
Why this output?
Because using namespace Config; makes the variables accessible directly.
Question Significance
This shows how using namespace imports names into the current scope, so they can be accessed without ::.
Test Cases
Test Results
Input
Expected Output