Tuesday 12 February 2013

Namespace in C++ Programming Language



Namespace is a keyword used to create a memory area. In this area the programmer can define various program elements such as variables, functions, classes etc. These program elements can be used any where in the programs like global variables.

Defining a namespane
The general form is,

namespace name
{
statement-1;
statement-2;
---------
statement-n;
}

0 comments:

Post a Comment

Powered by Blogger.