What is the correct syntax of defining a namespace?

a) namespace name{}
b) Namespace name{};
c) namespace name{};
d) typedef namespace name{} NAME

1 thought on “What is the correct syntax of defining a namespace?”

  1. a
    Explanation: A namespace:
    -Starts with keyword namespace
    -Followed by identifier
    -All members inside the braces{}
    -No semicolon at the end
    namespace identifier{}.

Leave a Comment