<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet type="text/xsl" media="screen" href="/~d/styles/rss2full.xsl"?><?xml-stylesheet type="text/css" media="screen" href="http://feeds.feedburner.com/~d/styles/itemcontent.css"?><rss xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:feedburner="http://rssnamespace.org/feedburner/ext/1.0" version="2.0">
		<channel>
			
			<title>cppquestions</title>
			<description>Let's crack all C++ interviews!</description>
			<link>http://www.cppquestions.com</link>
			<lastBuildDate>Thu, 10 Dec 2009 07:53:42 +0530</lastBuildDate>
			<atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="self" href="http://feeds.feedburner.com/Cppquestions" type="application/rss+xml" /><atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="hub" href="http://pubsubhubbub.appspot.com" /><item>
				<dc:creator>admin</dc:creator>
				<pubDate>Sun, 06 Dec 2009 00:08:25 +0530</pubDate>
				<guid isPermaLink="false">http://www.cppquestions.com/viewtopic.php?f=13&amp;t=27&amp;p=713#p713</guid>
				<link>http://feedproxy.google.com/~r/Cppquestions/~3/JcZwuzh4g9Q/viewtopic.php</link>
				<title>Re: access specifiers</title>
				<description>&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/BDv_JsjvZH2rMeru82kLNp9PMbw/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/BDv_JsjvZH2rMeru82kLNp9PMbw/0/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href="http://feedads.g.doubleclick.net/~a/BDv_JsjvZH2rMeru82kLNp9PMbw/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/BDv_JsjvZH2rMeru82kLNp9PMbw/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;private which is the default, means the members are not accessible outside the class.&lt;br /&gt;protected means that members are not accessible outside the class, except the derived classes.&lt;br /&gt;public member are anywhere accessible outside the class.&lt;img src="http://feeds.feedburner.com/~r/Cppquestions/~4/JcZwuzh4g9Q" height="1" width="1"/&gt;</description>
			<feedburner:origLink>http://www.cppquestions.com/viewtopic.php?f=13&amp;t=27&amp;p=713#p713</feedburner:origLink></item>
			<item>
				<dc:creator>admin</dc:creator>
				<pubDate>Sun, 06 Dec 2009 00:04:56 +0530</pubDate>
				<guid isPermaLink="false">http://www.cppquestions.com/viewtopic.php?f=36&amp;t=122&amp;p=712#p712</guid>
				<link>http://feedproxy.google.com/~r/Cppquestions/~3/rckPh8-GgTw/viewtopic.php</link>
				<title>Re: Two modes to include header files</title>
				<description>&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/HiXZK-VIgefQsY6k8Q7AuAtIE_U/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/HiXZK-VIgefQsY6k8Q7AuAtIE_U/0/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href="http://feedads.g.doubleclick.net/~a/HiXZK-VIgefQsY6k8Q7AuAtIE_U/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/HiXZK-VIgefQsY6k8Q7AuAtIE_U/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;When using &amp;quot;&amp;quot;, compiler looks for the file starting from the current directory of the source file, while when &amp;lt;&amp;gt; are used, compiler directly starts with the include folder. &lt;br /&gt;&lt;br /&gt;So for standard header include files we should use &amp;lt;&amp;gt; rather than &amp;quot;&amp;quot;. This would improve compile time&lt;img src="http://feeds.feedburner.com/~r/Cppquestions/~4/rckPh8-GgTw" height="1" width="1"/&gt;</description>
			<feedburner:origLink>http://www.cppquestions.com/viewtopic.php?f=36&amp;t=122&amp;p=712#p712</feedburner:origLink></item>
			<item>
				<dc:creator>admin</dc:creator>
				<pubDate>Sat, 05 Dec 2009 23:57:11 +0530</pubDate>
				<guid isPermaLink="false">http://www.cppquestions.com/viewtopic.php?f=46&amp;t=130&amp;p=711#p711</guid>
				<link>http://feedproxy.google.com/~r/Cppquestions/~3/-IMBKdA3CQE/viewtopic.php</link>
				<title>Re: Reference to array</title>
				<description>&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/5g72HGIGjoHoW1zBgzJ9pZIxUPY/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/5g72HGIGjoHoW1zBgzJ9pZIxUPY/0/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href="http://feedads.g.doubleclick.net/~a/5g72HGIGjoHoW1zBgzJ9pZIxUPY/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/5g72HGIGjoHoW1zBgzJ9pZIxUPY/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;Yes, its allowed. here is the syntax:&lt;br /&gt;&lt;dl class="codebox"&gt;int a&amp;#91;&amp;#93; ={1,2,3};&lt;br /&gt;int (&amp;amp;ref)&amp;#91;5&amp;#93; =a;&lt;/dl&gt;&lt;img src="http://feeds.feedburner.com/~r/Cppquestions/~4/-IMBKdA3CQE" height="1" width="1"/&gt;</description>
			<feedburner:origLink>http://www.cppquestions.com/viewtopic.php?f=46&amp;t=130&amp;p=711#p711</feedburner:origLink></item>
			<item>
				<dc:creator>admin</dc:creator>
				<pubDate>Sat, 05 Dec 2009 23:49:24 +0530</pubDate>
				<guid isPermaLink="false">http://www.cppquestions.com/viewtopic.php?f=35&amp;t=128&amp;p=710#p710</guid>
				<link>http://feedproxy.google.com/~r/Cppquestions/~3/gZSHRQQPKGU/viewtopic.php</link>
				<title>Re: life time of static variables</title>
				<description>&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/MwF01ZbKzYixG6pL9c_l-hSQ8sg/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/MwF01ZbKzYixG6pL9c_l-hSQ8sg/0/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href="http://feedads.g.doubleclick.net/~a/MwF01ZbKzYixG6pL9c_l-hSQ8sg/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/MwF01ZbKzYixG6pL9c_l-hSQ8sg/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;Global static variables and class level static variables: On program start-up&lt;br /&gt;local static variables: When control reaches the block initializing them&lt;img src="http://feeds.feedburner.com/~r/Cppquestions/~4/gZSHRQQPKGU" height="1" width="1"/&gt;</description>
			<feedburner:origLink>http://www.cppquestions.com/viewtopic.php?f=35&amp;t=128&amp;p=710#p710</feedburner:origLink></item>
			<item>
				<dc:creator>admin</dc:creator>
				<pubDate>Sat, 05 Dec 2009 23:37:44 +0530</pubDate>
				<guid isPermaLink="false">http://www.cppquestions.com/viewtopic.php?f=46&amp;t=129&amp;p=709#p709</guid>
				<link>http://feedproxy.google.com/~r/Cppquestions/~3/1nwSQ9YysxU/viewtopic.php</link>
				<title>Re: Array of references</title>
				<description>&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/NkKDVC_ov3i_c4Lw_VPt-9Zz_m8/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/NkKDVC_ov3i_c4Lw_VPt-9Zz_m8/0/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href="http://feedads.g.doubleclick.net/~a/NkKDVC_ov3i_c4Lw_VPt-9Zz_m8/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/NkKDVC_ov3i_c4Lw_VPt-9Zz_m8/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;References are not objects. Array requires its members to be directly accessible by knowing its address.&lt;br /&gt;&lt;br /&gt;Because a reference can't be reseated it has to be initialized with some value. We can't have an array of references because we can't give objects at the time of creation of such an array. There is no such C++ syntax.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;    C++ Standard 8.3.2/4:&lt;br /&gt;&lt;br /&gt;    There shall be no references to references, no arrays of references, and no pointers to references.&lt;img src="http://feeds.feedburner.com/~r/Cppquestions/~4/1nwSQ9YysxU" height="1" width="1"/&gt;</description>
			<feedburner:origLink>http://www.cppquestions.com/viewtopic.php?f=46&amp;t=129&amp;p=709#p709</feedburner:origLink></item>
			<item>
				<dc:creator>admin</dc:creator>
				<pubDate>Sat, 05 Dec 2009 23:02:42 +0530</pubDate>
				<guid isPermaLink="false">http://www.cppquestions.com/viewtopic.php?f=47&amp;t=564&amp;p=708#p708</guid>
				<link>http://feedproxy.google.com/~r/Cppquestions/~3/zxysHYcnj2k/viewtopic.php</link>
				<title>Re: Online C++ compiler</title>
				<description>&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/zpnHX7WyJr3XSvKctMrXtR--VEA/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/zpnHX7WyJr3XSvKctMrXtR--VEA/0/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href="http://feedads.g.doubleclick.net/~a/zpnHX7WyJr3XSvKctMrXtR--VEA/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/zpnHX7WyJr3XSvKctMrXtR--VEA/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;&lt;!-- m --&gt;&lt;a class="postlink" href="http://www.comeaucomputing.com/tryitout/"&gt;http://www.comeaucomputing.com/tryitout/&lt;/a&gt;&lt;!-- m --&gt;&lt;img src="http://feeds.feedburner.com/~r/Cppquestions/~4/zxysHYcnj2k" height="1" width="1"/&gt;</description>
			<feedburner:origLink>http://www.cppquestions.com/viewtopic.php?f=47&amp;t=564&amp;p=708#p708</feedburner:origLink></item>
			<item>
				<dc:creator>Vikas</dc:creator>
				<pubDate>Sat, 05 Dec 2009 22:59:20 +0530</pubDate>
				<guid isPermaLink="false">http://www.cppquestions.com/viewtopic.php?f=47&amp;t=564&amp;p=707#p707</guid>
				<link>http://feedproxy.google.com/~r/Cppquestions/~3/2RDxNQ6u83I/viewtopic.php</link>
				<title>Online C++ compiler</title>
				<description>&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/hbYRclNPmrUflI3VqIRGqjgA3wU/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/hbYRclNPmrUflI3VqIRGqjgA3wU/0/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href="http://feedads.g.doubleclick.net/~a/hbYRclNPmrUflI3VqIRGqjgA3wU/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/hbYRclNPmrUflI3VqIRGqjgA3wU/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;I don't want to or doesn't have a compiler installed on my machine. Is there any web based compiler that can compile my code?&lt;img src="http://feeds.feedburner.com/~r/Cppquestions/~4/2RDxNQ6u83I" height="1" width="1"/&gt;</description>
			<feedburner:origLink>http://www.cppquestions.com/viewtopic.php?f=47&amp;t=564&amp;p=707#p707</feedburner:origLink></item>
			<item>
				<dc:creator>Vikas</dc:creator>
				<pubDate>Sat, 05 Dec 2009 22:53:59 +0530</pubDate>
				<guid isPermaLink="false">http://www.cppquestions.com/viewtopic.php?f=49&amp;t=156&amp;p=705#p705</guid>
				<link>http://feedproxy.google.com/~r/Cppquestions/~3/Q2eqvcupLgk/viewtopic.php</link>
				<title>Re: Online good tutorials on C++</title>
				<description>&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/pGHQAsI7IeRQomHuGLQeETLBT_g/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/pGHQAsI7IeRQomHuGLQeETLBT_g/0/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href="http://feedads.g.doubleclick.net/~a/pGHQAsI7IeRQomHuGLQeETLBT_g/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/pGHQAsI7IeRQomHuGLQeETLBT_g/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;Complete C++ reference&lt;br /&gt;&lt;br /&gt;&lt;!-- m --&gt;&lt;a class="postlink" href="http://publib.boulder.ibm.com/infocenter/comphelp/v8v101/index.jsp?topic=/com.ibm.xlcpp8a.doc/language/ref/using_directive.htm"&gt;http://publib.boulder.ibm.com/infocente ... ective.htm&lt;/a&gt;&lt;!-- m --&gt;&lt;img src="http://feeds.feedburner.com/~r/Cppquestions/~4/Q2eqvcupLgk" height="1" width="1"/&gt;</description>
			<feedburner:origLink>http://www.cppquestions.com/viewtopic.php?f=49&amp;t=156&amp;p=705#p705</feedburner:origLink></item>
			<item>
				<dc:creator>Vikas</dc:creator>
				<pubDate>Sat, 05 Dec 2009 22:25:04 +0530</pubDate>
				<guid isPermaLink="false">http://www.cppquestions.com/viewtopic.php?f=16&amp;t=142&amp;p=704#p704</guid>
				<link>http://feedproxy.google.com/~r/Cppquestions/~3/CJeH7GbKgfc/viewtopic.php</link>
				<title>Re: template specialization</title>
				<description>&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/_X7QG62pjXy7dgYC1fEoKY1B5DI/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/_X7QG62pjXy7dgYC1fEoKY1B5DI/0/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href="http://feedads.g.doubleclick.net/~a/_X7QG62pjXy7dgYC1fEoKY1B5DI/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/_X7QG62pjXy7dgYC1fEoKY1B5DI/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;template specialization means to override the default template implementation for a particular type. This is also called full specialization.&lt;br /&gt;&lt;br /&gt;For Example we specialize for a particular type, float.&lt;br /&gt;&lt;br /&gt;In partial specialization, we do override the default implementation, but leave the template user with a template type to instantiate with. For example we might partially specialize for pointer to a type(T *)&lt;br /&gt;&lt;br /&gt;More at&lt;br /&gt;&lt;!-- m --&gt;&lt;a class="postlink" href="http://www.cprogramming.com/tutorial/template_specialization.html"&gt;http://www.cprogramming.com/tutorial/te ... ation.html&lt;/a&gt;&lt;!-- m --&gt;&lt;img src="http://feeds.feedburner.com/~r/Cppquestions/~4/CJeH7GbKgfc" height="1" width="1"/&gt;</description>
			<feedburner:origLink>http://www.cppquestions.com/viewtopic.php?f=16&amp;t=142&amp;p=704#p704</feedburner:origLink></item>
			<item>
				<dc:creator>Vikas</dc:creator>
				<pubDate>Sat, 05 Dec 2009 20:34:55 +0530</pubDate>
				<guid isPermaLink="false">http://www.cppquestions.com/viewtopic.php?f=22&amp;t=563&amp;p=702#p702</guid>
				<link>http://feedproxy.google.com/~r/Cppquestions/~3/Sp3hCQW4r-g/viewtopic.php</link>
				<title>Re: Online tests</title>
				<description>&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/REfvM4xQILNQxeFOkvZvS70S0oY/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/REfvM4xQILNQxeFOkvZvS70S0oY/0/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href="http://feedads.g.doubleclick.net/~a/REfvM4xQILNQxeFOkvZvS70S0oY/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/REfvM4xQILNQxeFOkvZvS70S0oY/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;&lt;!-- w --&gt;&lt;a class="postlink" href="http://www.brainbench.com/"&gt;www.brainbench.com/&lt;/a&gt;&lt;!-- w --&gt;&lt;br /&gt;&lt;!-- m --&gt;&lt;a class="postlink" href="http://www.itworld2.com/"&gt;http://www.itworld2.com/&lt;/a&gt;&lt;!-- m --&gt;&lt;br /&gt;&lt;!-- m --&gt;&lt;a class="postlink" href="http://www.select2perform.com/"&gt;http://www.select2perform.com/&lt;/a&gt;&lt;!-- m --&gt;&lt;img src="http://feeds.feedburner.com/~r/Cppquestions/~4/Sp3hCQW4r-g" height="1" width="1"/&gt;</description>
			<feedburner:origLink>http://www.cppquestions.com/viewtopic.php?f=22&amp;t=563&amp;p=702#p702</feedburner:origLink></item>
		</channel>
	</rss>
