43. Using Namespace Directive

Back To All Submissions
Previous Submission
Next Submission
#include<iostream>
using namespace std;

namespace Config
{
    int baudRate =9600;
    int threshold = 50;
}
using namespace Config;
int main()
{
cout<<"Baud: "<<baudRate<<", Threshold: "<<threshold<<endl;
}
Was this helpful?
Upvote
Downvote