<?xml version="1.0" encoding="UTF-8"?><!-- generator="wordpress/2.0.7" -->
<rss version="2.0" 
	xmlns:content="http://purl.org/rss/1.0/modules/content/">
<channel>
	<title>Comments on: Namespaces</title>
	<link>http://www.technicalinterviews.net/namespaces/</link>
	<description>This site features a collection of common technical interview questions gathered by a group of programmers who have been through, and given, lots of technical interviews. There is an emphasis on C++ and game programming technical interviews, but most of the questions are relevant to any technical interview.</description>
	<pubDate>Thu, 04 Dec 2008 19:26:57 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.0.7</generator>

	<item>
		<title>by: Mayank</title>
		<link>http://www.technicalinterviews.net/namespaces/#comment-1447</link>
		<pubDate>Tue, 28 Aug 2007 11:03:33 +0000</pubDate>
		<guid>http://www.technicalinterviews.net/namespaces/#comment-1447</guid>
					<description>Namespace is used to avoid function name clashes between different libraries, it declares all function/variables within a scope which remains hidden otherwise until explictly mentioned which is done by the keywords 'using'.

eg.

namespace myfuncs {
void func1();
int func2();

int fg;
}

..
..
..

in some file when you write ... 

... 
using namespace myfuncs;

...</description>
		<content:encoded><![CDATA[<p>Namespace is used to avoid function name clashes between different libraries, it declares all function/variables within a scope which remains hidden otherwise until explictly mentioned which is done by the keywords &#8216;using&#8217;.</p>
<p>eg.</p>
<p>namespace myfuncs {<br />
void func1();<br />
int func2();</p>
<p>int fg;<br />
}</p>
<p>..<br />
..<br />
..</p>
<p>in some file when you write &#8230; </p>
<p>&#8230;<br />
using namespace myfuncs;</p>
<p>&#8230;
</p>
]]></content:encoded>
				</item>
</channel>
</rss>
