All submissions

Aliasing Namespace

#include <iostream>
using namespace std;

namespace Communication {
    namespace I2C {
        int speed = 400000; // 400 kHz
    }
}
namespace CI=Communication;

int main() {
    // your code here: create alias CI for Communication::I2C
    // your code here: print speed using CI
    cout<<"I2C Speed: "<<CI::I2C::speed<<endl;
    return 0;
}
Loading...

Input

Expected Output

I2C Speed: 400000