<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	>

<channel>
	<title>Technical Interview Questions &#187; C/C++ Interview Questions</title>
	<atom:link href="http://www.technicalinterview.info/category/cc-interview-questions/feed" rel="self" type="application/rss+xml" />
	<link>http://www.technicalinterview.info</link>
	<description>Java Interview Questions &#124; IT interview questions &#124; Software Testing Interview questions &#124; .Net Interview Questions &#124; Job Interview Questions &#38; Answers &#124; Tough Interview Questions &#124; Technology Interview Questions &#124; Tech Interview Questions &#124; Testing Interview Questions &#124; SAP Interview Questions &#124; ABAP Interview Questions &#124; Data Warehousing Interview Questions</description>
	<pubDate>Tue, 02 Sep 2008 08:33:19 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.5.1</generator>
	<language>en</language>
			<item>
		<title>What is a void return type?</title>
		<link>http://www.technicalinterview.info/what-is-a-void-return-type/</link>
		<comments>http://www.technicalinterview.info/what-is-a-void-return-type/#comments</comments>
		<pubDate>Sun, 03 Jun 2007 02:20:00 +0000</pubDate>
		<dc:creator></dc:creator>
		
		<category><![CDATA[C/C++ Interview Questions]]></category>

		<category><![CDATA[JAVA Interview Questions]]></category>

		<guid isPermaLink="false">http://www.technicalinterview.info/what-is-a-void-return-type.html</guid>
		<description><![CDATA[A void return type indicates that a method does not return a value.
]]></description>
			<content:encoded><![CDATA[<p>A void return type indicates that a method does not return a value.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.technicalinterview.info/what-is-a-void-return-type/feed/</wfw:commentRss>
		</item>
		<item>
		<title>How is it possible for two String objects with identical values not to be equal under the == operator?</title>
		<link>http://www.technicalinterview.info/how-is-it-possible-for-two-string-objects-with-identical-values-not-to-be-equal-under-the-operator/</link>
		<comments>http://www.technicalinterview.info/how-is-it-possible-for-two-string-objects-with-identical-values-not-to-be-equal-under-the-operator/#comments</comments>
		<pubDate>Fri, 01 Jun 2007 00:58:00 +0000</pubDate>
		<dc:creator></dc:creator>
		
		<category><![CDATA[C/C++ Interview Questions]]></category>

		<category><![CDATA[JAVA Interview Questions]]></category>

		<guid isPermaLink="false">http://www.technicalinterview.info/how-is-it-possible-for-two-string-objects-with-identical-values-not-to-be-equal-under-the-operator.html</guid>
		<description><![CDATA[The == operator compares two objects to determine if they are the same object in memory. It is possible for two String objects to have the same value, but located indifferent areas of memory.
]]></description>
			<content:encoded><![CDATA[<p>The == operator compares two objects to determine if they are the same object in memory. It is possible for two String objects to have the same value, but located indifferent areas of memory.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.technicalinterview.info/how-is-it-possible-for-two-string-objects-with-identical-values-not-to-be-equal-under-the-operator/feed/</wfw:commentRss>
		</item>
		<item>
		<title>What is the difference between a while statement and a do statement?</title>
		<link>http://www.technicalinterview.info/what-is-the-difference-between-a-while-statement-and-a-do-statement/</link>
		<comments>http://www.technicalinterview.info/what-is-the-difference-between-a-while-statement-and-a-do-statement/#comments</comments>
		<pubDate>Tue, 29 May 2007 01:44:00 +0000</pubDate>
		<dc:creator></dc:creator>
		
		<category><![CDATA[C/C++ Interview Questions]]></category>

		<category><![CDATA[JAVA Interview Questions]]></category>

		<guid isPermaLink="false">http://www.technicalinterview.info/what-is-the-difference-between-a-while-statement-and-a-do-statement.html</guid>
		<description><![CDATA[A while statement checks at the beginning of a loop to see whether the next loop iteration should occur. A do statement checks at the end of a loop to see whether the next iteration of a loop should occur. The do statement will always execute the body of a loop at least once.
]]></description>
			<content:encoded><![CDATA[<p>A while statement checks at the beginning of a loop to see whether the next loop iteration should occur. A do statement checks at the end of a loop to see whether the next iteration of a loop should occur. The do statement will always execute the body of a loop at least once.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.technicalinterview.info/what-is-the-difference-between-a-while-statement-and-a-do-statement/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Can a for statement loop indefinitely?</title>
		<link>http://www.technicalinterview.info/can-a-for-statement-loop-indefinitely/</link>
		<comments>http://www.technicalinterview.info/can-a-for-statement-loop-indefinitely/#comments</comments>
		<pubDate>Mon, 21 May 2007 04:27:00 +0000</pubDate>
		<dc:creator></dc:creator>
		
		<category><![CDATA[C/C++ Interview Questions]]></category>

		<category><![CDATA[JAVA Interview Questions]]></category>

		<guid isPermaLink="false">http://www.technicalinterview.info/can-a-for-statement-loop-indefinitely.html</guid>
		<description><![CDATA[Yes, a for statement can loop indefinitely. For example, consider the following:
for(;;) ;
]]></description>
			<content:encoded><![CDATA[<p>Yes, a for statement can loop indefinitely. For example, consider the following:<br />
for(;;) ;</p>
]]></content:encoded>
			<wfw:commentRss>http://www.technicalinterview.info/can-a-for-statement-loop-indefinitely/feed/</wfw:commentRss>
		</item>
		<item>
		<title>How do you write a function that can reverse a linked-list? (Cisco System)</title>
		<link>http://www.technicalinterview.info/how-do-you-write-a-function-that-can-reverse-a-linked-list-cisco-system/</link>
		<comments>http://www.technicalinterview.info/how-do-you-write-a-function-that-can-reverse-a-linked-list-cisco-system/#comments</comments>
		<pubDate>Fri, 04 May 2007 01:52:00 +0000</pubDate>
		<dc:creator></dc:creator>
		
		<category><![CDATA[C/C++ Interview Questions]]></category>

		<guid isPermaLink="false">http://www.technicalinterview.info/how-do-you-write-a-function-that-can-reverse-a-linked-list-cisco-system.html</guid>
		<description><![CDATA[void reverselist(void)
{
if(head==0)
return;
if(head-&#62;next==0)
return;
if(head-&#62;next==tail)
{
head-&#62;next = 0;
tail-&#62;next = head;
}
else
{
node* pre = head;
node* cur = head-&#62;next;
node* curnext = cur-&#62;next;
head-&#62;next = 0;
cur-&#62;next = head;
for(; curnext!=0; )
{
cur-&#62;next = pre;
pre = cur;
cur = curnext;
curnext = curnext-&#62;next;
}
curnext-&#62;next = cur;
}
}
]]></description>
			<content:encoded><![CDATA[<p>void reverselist(void)<br />
{<br />
if(head==0)<br />
return;<br />
if(head-&gt;next==0)<br />
return;<br />
if(head-&gt;next==tail)<br />
{<br />
head-&gt;next = 0;<br />
tail-&gt;next = head;<br />
}<br />
else<br />
{<br />
node* pre = head;<br />
node* cur = head-&gt;next;<br />
node* curnext = cur-&gt;next;<br />
head-&gt;next = 0;<br />
cur-&gt;next = head;<br />
for(; curnext!=0; )<br />
{<br />
cur-&gt;next = pre;<br />
pre = cur;<br />
cur = curnext;<br />
curnext = curnext-&gt;next;<br />
}<br />
curnext-&gt;next = cur;<br />
}<br />
}</p>
]]></content:encoded>
			<wfw:commentRss>http://www.technicalinterview.info/how-do-you-write-a-function-that-can-reverse-a-linked-list-cisco-system/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Can a copy constructor accept an object of the same class as parameter, instead of reference of the object?</title>
		<link>http://www.technicalinterview.info/can-a-copy-constructor-accept-an-object-of-the-same-class-as-parameter-instead-of-reference-of-the-object/</link>
		<comments>http://www.technicalinterview.info/can-a-copy-constructor-accept-an-object-of-the-same-class-as-parameter-instead-of-reference-of-the-object/#comments</comments>
		<pubDate>Fri, 04 May 2007 01:51:00 +0000</pubDate>
		<dc:creator></dc:creator>
		
		<category><![CDATA[C/C++ Interview Questions]]></category>

		<guid isPermaLink="false">http://www.technicalinterview.info/can-a-copy-constructor-accept-an-object-of-the-same-class-as-parameter-instead-of-reference-of-the-object.html</guid>
		<description><![CDATA[No. It is specified in the definition of the copy constructor itself. It should generate an error if a programmer specifies a copy constructor with a first argument that is an object and not a reference.
]]></description>
			<content:encoded><![CDATA[<p>No. It is specified in the definition of the copy constructor itself. It should generate an error if a programmer specifies a copy constructor with a first argument that is an object and not a reference.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.technicalinterview.info/can-a-copy-constructor-accept-an-object-of-the-same-class-as-parameter-instead-of-reference-of-the-object/feed/</wfw:commentRss>
		</item>
		<item>
		<title>What is a local class? Why can it be useful?</title>
		<link>http://www.technicalinterview.info/what-is-a-local-class-why-can-it-be-useful/</link>
		<comments>http://www.technicalinterview.info/what-is-a-local-class-why-can-it-be-useful/#comments</comments>
		<pubDate>Fri, 04 May 2007 01:50:00 +0000</pubDate>
		<dc:creator></dc:creator>
		
		<category><![CDATA[C/C++ Interview Questions]]></category>

		<guid isPermaLink="false">http://www.technicalinterview.info/what-is-a-local-class-why-can-it-be-useful.html</guid>
		<description><![CDATA[Local class is a class defined within the scope of a function &#8212; any function, whether a member function or a free function. For example:
// Example 2: Local class
//
int f()
{
class LocalClass
{
// &#8230;
};
// &#8230;
};
Like nested classes, local classes can be a useful tool for managing code dependencies.
]]></description>
			<content:encoded><![CDATA[<p>Local class is a class defined within the scope of a function &#8212; any function, whether a member function or a free function. For example:<br />
// Example 2: Local class<br />
//<br />
int f()<br />
{<br />
class LocalClass<br />
{<br />
// &#8230;<br />
};<br />
// &#8230;<br />
};<br />
Like nested classes, local classes can be a useful tool for managing code dependencies.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.technicalinterview.info/what-is-a-local-class-why-can-it-be-useful/feed/</wfw:commentRss>
		</item>
		<item>
		<title>What is a nested class? Why can it be useful?</title>
		<link>http://www.technicalinterview.info/what-is-a-nested-class-why-can-it-be-useful/</link>
		<comments>http://www.technicalinterview.info/what-is-a-nested-class-why-can-it-be-useful/#comments</comments>
		<pubDate>Fri, 04 May 2007 01:49:00 +0000</pubDate>
		<dc:creator></dc:creator>
		
		<category><![CDATA[C/C++ Interview Questions]]></category>

		<guid isPermaLink="false">http://www.technicalinterview.info/what-is-a-nested-class-why-can-it-be-useful.html</guid>
		<description><![CDATA[A nested class is a class enclosed within the scope of another class. For example:
// Example 1: Nested class
//
class OuterClass
{
class NestedClass
{
// &#8230;
};
// &#8230;
};
Nested classes are useful for organizing code and controlling access and dependencies. Nested classes obey access rules just like other parts of a class do; so, in Example 1, if Nested Class is [...]]]></description>
			<content:encoded><![CDATA[<p>A nested class is a class enclosed within the scope of another class. For example:<br />
// Example 1: Nested class<br />
//<br />
class OuterClass<br />
{<br />
class NestedClass<br />
{<br />
// &#8230;<br />
};<br />
// &#8230;<br />
};<br />
Nested classes are useful for organizing code and controlling access and dependencies. Nested classes obey access rules just like other parts of a class do; so, in Example 1, if Nested Class is [...]</p>
]]></content:encoded>
			<wfw:commentRss>http://www.technicalinterview.info/what-is-a-nested-class-why-can-it-be-useful/feed/</wfw:commentRss>
		</item>
		<item>
		<title>What are the access privileges in C++? What is the default access level?</title>
		<link>http://www.technicalinterview.info/what-are-the-access-privileges-in-c-what-is-the-default-access-level/</link>
		<comments>http://www.technicalinterview.info/what-are-the-access-privileges-in-c-what-is-the-default-access-level/#comments</comments>
		<pubDate>Fri, 04 May 2007 01:48:00 +0000</pubDate>
		<dc:creator></dc:creator>
		
		<category><![CDATA[C/C++ Interview Questions]]></category>

		<guid isPermaLink="false">http://www.technicalinterview.info/what-are-the-access-privileges-in-c-what-is-the-default-access-level.html</guid>
		<description><![CDATA[The access privileges in C++ are private, public and protected. The default access level assigned to members of a class is private. Private members of a class are accessible only within the class and by friends of the class. Protected members are accessible by the class itself and it&#8217;s sub-classes. Public members of a class [...]]]></description>
			<content:encoded><![CDATA[<p>The access privileges in C++ are private, public and protected. The default access level assigned to members of a class is private. Private members of a class are accessible only within the class and by friends of the class. Protected members are accessible by the class itself and it&#8217;s sub-classes. Public members of a class [...]</p>
]]></content:encoded>
			<wfw:commentRss>http://www.technicalinterview.info/what-are-the-access-privileges-in-c-what-is-the-default-access-level/feed/</wfw:commentRss>
		</item>
		<item>
		<title>What is multiple inheritance(virtual inheritance)? What are its advantages and disadvantages?</title>
		<link>http://www.technicalinterview.info/what-is-multiple-inheritancevirtual-inheritance-what-are-its-advantages-and-disadvantages/</link>
		<comments>http://www.technicalinterview.info/what-is-multiple-inheritancevirtual-inheritance-what-are-its-advantages-and-disadvantages/#comments</comments>
		<pubDate>Fri, 04 May 2007 01:47:00 +0000</pubDate>
		<dc:creator></dc:creator>
		
		<category><![CDATA[C/C++ Interview Questions]]></category>

		<guid isPermaLink="false">http://www.technicalinterview.info/what-is-multiple-inheritancevirtual-inheritance-what-are-its-advantages-and-disadvantages.html</guid>
		<description><![CDATA[Multiple Inheritance is the process whereby a child can be derived from more than one parent class. The advantage of multiple inheritance is that it allows a class to inherit the functionality of more than one base class thus allowing for modeling of complex relationships. The disadvantage of multiple inheritance is that it can lead [...]]]></description>
			<content:encoded><![CDATA[<p>Multiple Inheritance is the process whereby a child can be derived from more than one parent class. The advantage of multiple inheritance is that it allows a class to inherit the functionality of more than one base class thus allowing for modeling of complex relationships. The disadvantage of multiple inheritance is that it can lead [...]</p>
]]></content:encoded>
			<wfw:commentRss>http://www.technicalinterview.info/what-is-multiple-inheritancevirtual-inheritance-what-are-its-advantages-and-disadvantages/feed/</wfw:commentRss>
		</item>
	</channel>
</rss>
