adspace
Answer Posted / Annu Kumar
"Namespaces are used in C++ to organize code into logical units, reducing the likelihood of naming conflicts between identifiers. They allow for better modularity and encapsulation by grouping related entities together. Namespaces can also help improve readability by clearly defining the scope of symbols (variables, functions, classes)."
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers