<?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"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	xmlns:georss="http://www.georss.org/georss" xmlns:geo="http://www.w3.org/2003/01/geo/wgs84_pos#" xmlns:media="http://search.yahoo.com/mrss/"
	>

<channel>
	<title>Freshers jobs, Todays jobs &#38; Walkins, Experienced &#38; BPO jobs, ebooks, C,C++,SQL,SAP,Oracle &#187; tutorials</title>
	<atom:link href="http://archanareddy20.wordpress.com/category/tutorials/feed/" rel="self" type="application/rss+xml" />
	<link>http://archanareddy20.wordpress.com</link>
	<description>Just another WordPress.com weblog</description>
	<lastBuildDate>Mon, 29 Oct 2007 06:27:00 +0000</lastBuildDate>
	<generator>http://wordpress.com/</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<cloud domain='archanareddy20.wordpress.com' port='80' path='/?rsscloud=notify' registerProcedure='' protocol='http-post' />
<image>
		<url>http://www.gravatar.com/blavatar/169003c4a083d4efb5a2a83b62e2b284?s=96&#038;d=http://s.wordpress.com/i/buttonw-com.png</url>
		<title>Freshers jobs, Todays jobs &#38; Walkins, Experienced &#38; BPO jobs, ebooks, C,C++,SQL,SAP,Oracle &#187; tutorials</title>
		<link>http://archanareddy20.wordpress.com</link>
	</image>
	<atom:link rel="search" type="application/opensearchdescription+xml" href="http://archanareddy20.wordpress.com/osd.xml" title="Freshers jobs, Todays jobs &amp; Walkins, Experienced &amp; BPO jobs, ebooks, C,C++,SQL,SAP,Oracle" />
		<item>
		<title>CAT 2006 testpaper with solutions</title>
		<link>http://archanareddy20.wordpress.com/2007/07/24/cat-2006-testpaper-with-solutions/</link>
		<comments>http://archanareddy20.wordpress.com/2007/07/24/cat-2006-testpaper-with-solutions/#comments</comments>
		<pubDate>Tue, 24 Jul 2007 07:17:00 +0000</pubDate>
		<dc:creator>archanareddy20</dc:creator>
				<category><![CDATA[CAT]]></category>
		<category><![CDATA[tips]]></category>
		<category><![CDATA[tutorials]]></category>

		<guid isPermaLink="false">http://archanareddy20.wordpress.com/2007/07/24/cat-2006-testpaper-with-solutions/</guid>
		<description><![CDATA[...http://www.coolavenues.com/mbasp/cat006testbooklet.pdf...
       <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=archanareddy20.wordpress.com&blog=1543902&post=167&subd=archanareddy20&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>.<br />.<br />.<br /><a href="http://www.coolavenues.com/mbasp/cat006testbooklet.pdf" target="_blank"><span style="font-size:130%;">http://www.coolavenues.com/mbasp/cat006testbooklet.pdf</span></a><br />.<br />.<br />.</p>
<img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/archanareddy20.wordpress.com/167/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/archanareddy20.wordpress.com/167/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/archanareddy20.wordpress.com/167/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/archanareddy20.wordpress.com/167/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/archanareddy20.wordpress.com/167/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/archanareddy20.wordpress.com/167/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/archanareddy20.wordpress.com/167/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/archanareddy20.wordpress.com/167/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/archanareddy20.wordpress.com/167/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/archanareddy20.wordpress.com/167/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/archanareddy20.wordpress.com/167/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/archanareddy20.wordpress.com/167/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=archanareddy20.wordpress.com&blog=1543902&post=167&subd=archanareddy20&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://archanareddy20.wordpress.com/2007/07/24/cat-2006-testpaper-with-solutions/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/89cc4b2a872a17e79aaf0f7b63efdd47?s=96&#38;d=identicon" medium="image">
			<media:title type="html">archanareddy20</media:title>
		</media:content>
	</item>
		<item>
		<title>Book List for CAT RC preparation</title>
		<link>http://archanareddy20.wordpress.com/2007/07/24/book-list-for-cat-rc-preparation/</link>
		<comments>http://archanareddy20.wordpress.com/2007/07/24/book-list-for-cat-rc-preparation/#comments</comments>
		<pubDate>Tue, 24 Jul 2007 07:13:00 +0000</pubDate>
		<dc:creator>archanareddy20</dc:creator>
				<category><![CDATA[CAT]]></category>
		<category><![CDATA[tips]]></category>
		<category><![CDATA[tutorials]]></category>

		<guid isPermaLink="false">http://archanareddy20.wordpress.com/2007/07/24/book-list-for-cat-rc-preparation/</guid>
		<description><![CDATA[List Of Books For Your RC PreparationManagementAny Edition Of Harvard Business ReviewCase Studies Of Business World MagazineWhat They Don&#8217;t Teach You At Harvard Business School-Mark H McCormack
Physics/ScienceBrief History Of Time &#8211; Stephen HawkingAny Work Of Isaac AssimovThe Tao Physics &#8211; Fritjof Capra
PhilosophyZen And The Art Of Motor Cycle MaintenanceThe Fountainhead-Ayn Rand
Abstract TopicFutureshock Or Power Shift [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=archanareddy20.wordpress.com&blog=1543902&post=166&subd=archanareddy20&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p><span style="font-size:85%;">List Of Books For Your RC Preparation<br />Management<br />Any Edition Of Harvard Business Review<br />Case Studies Of Business World Magazine<br />What They Don&#8217;t Teach You At Harvard Business School-Mark H McCormack</p>
<p>Physics/Science<br />Brief History Of Time &#8211; Stephen Hawking<br />Any Work Of Isaac Assimov<br />The Tao Physics &#8211; Fritjof Capra</p>
<p>Philosophy<br />Zen And The Art Of Motor Cycle Maintenance<br />The Fountainhead-Ayn Rand</p>
<p>Abstract Topic<br />Futureshock Or Power Shift Or Third Wave -Alvin Toffler</p>
<p>Literacy Works<br />To kill a mocking bird &#8211; harper lee<br />Alchemist<br />God Of Small Things-Arundhati Roy<br />Midnight&#8217;s Childeren &#8211; Salman Rushdie</p>
<p>Business<br />Made In Japan &#8211; Akio Morito<br />Built To Last &#8211; Tom Peters And Water Man<br />The machine that changed the world<br />Art of war sun tzu<br />Only paranoid survive &#8211; Andy s groove</p>
<p>Religion<br />Any Book Written By Swami Vivekanand</p>
<p>Sports<br />Idols By Sunil Gavaskar</p>
<p>General<br />Uncommon Wisdom-Fritjof Capra</p>
<p>Law<br />Any Of Johan Grisham&#8217;s Works</p>
<p>Medical<br />Doctors By Erich Segal</p>
<p>Anthropology/Sociology<br />Manwatching<br />The Naked Ape- Desmond Morri</span></p>
<img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/archanareddy20.wordpress.com/166/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/archanareddy20.wordpress.com/166/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/archanareddy20.wordpress.com/166/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/archanareddy20.wordpress.com/166/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/archanareddy20.wordpress.com/166/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/archanareddy20.wordpress.com/166/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/archanareddy20.wordpress.com/166/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/archanareddy20.wordpress.com/166/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/archanareddy20.wordpress.com/166/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/archanareddy20.wordpress.com/166/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/archanareddy20.wordpress.com/166/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/archanareddy20.wordpress.com/166/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=archanareddy20.wordpress.com&blog=1543902&post=166&subd=archanareddy20&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://archanareddy20.wordpress.com/2007/07/24/book-list-for-cat-rc-preparation/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/89cc4b2a872a17e79aaf0f7b63efdd47?s=96&#38;d=identicon" medium="image">
			<media:title type="html">archanareddy20</media:title>
		</media:content>
	</item>
		<item>
		<title>C++ faq&#8217;s and interview Questions &#8211; 3</title>
		<link>http://archanareddy20.wordpress.com/2007/07/17/c-faqs-and-interview-questions-3/</link>
		<comments>http://archanareddy20.wordpress.com/2007/07/17/c-faqs-and-interview-questions-3/#comments</comments>
		<pubDate>Tue, 17 Jul 2007 07:18:00 +0000</pubDate>
		<dc:creator>archanareddy20</dc:creator>
				<category><![CDATA[C++]]></category>
		<category><![CDATA[faq]]></category>
		<category><![CDATA[faq's]]></category>
		<category><![CDATA[jobs]]></category>
		<category><![CDATA[tutorials]]></category>

		<guid isPermaLink="false">http://archanareddy20.wordpress.com/2007/07/17/c-faqs-and-interview-questions-3/</guid>
		<description><![CDATA[7. How do I refer to a name of class or function that is defined within a namespace?Ans: There are two ways in which we can refer to a name of class or function that is defined within a namespace:Using scope resolution operator through the using keyword.This is shown in following example:namespace name1{class sample1{ // [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=archanareddy20.wordpress.com&blog=1543902&post=107&subd=archanareddy20&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>7. How do I refer to a name of class or function that is defined within a namespace?<br />Ans: There are two ways in which we can refer to a name of class or function that is defined within a namespace:<br />Using scope resolution operator through the using keyword.<br />This is shown in following example:<br />namespace name1<br />{<br />class sample1<br />{ // code } ;<br />}<br />namespace name2 {<br />class sample2 { // code } ; }<br />using namespace name2 ;<br />void main( )<br />{<br />name1::sample1 s1 ;<br />sample2 s2 ;<br />}<br />Here, class sample1 is referred using the scope resolution operator. On the other hand we can directly refer to class sample2 because of the statement using namespace name2 ; the using keyword declares all the names in the namespace to be in the current scope. So we can use the names without any qualifiers.<br />&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;<br /><!-- google_ad_client = "pub-4800743051762209"; google_ad_output = "textlink"; google_ad_format = "ref_text"; google_cpa_choice = "CAEaCPE0Qicm8BvfUAU"; //--></p>
<p>8. While overloading a binary operator can we provide default values?<br />Ans: No!. This is because even if we provide the default arguments to the parameters of the overloaded operator function we would end up using the binary operator incorrectly. This is explained in the following example:<br />sample operator + ( sample a, sample b = sample (2, 3.5f ) )<br />{ }<br />void main( )<br />{<br />sample s1, s2, s3 ;<br />s3 = s1 + ; // error<br />}<br />&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;9. How do I carry out conversion of one object of user-defined type to another?<br />Ans: To perform conversion from one user-defined type to another we need to provide conversion function. Following program demonstrates how to provide such conversion function.<br />class circle<br />{<br />private :<br />int radius ;<br />public:<br />circle ( int r = 0 )<br />{<br />radius = r ;<br />}<br />} ;<br />class rectangle<br />{<br />private :<br />int length, breadth ;<br />public :<br />rectangle( int l, int b )<br />{<br />length = l ;<br />breadth = b ;<br />}<br />operator circle( )<br />{<br />return circle ( length ) ;<br />}<br />} ;<br />void main( )<br />{<br />rectangle r ( 20, 10 ) ;<br />circle c;<br />c = r ;<br />}</p>
<p>Here, when the statement c = r ; is executed the compiler searches for an overloaded assignment operator in the class circle which accepts the object of type rectangle. Since there is no such overloaded assignment operator, the conversion operator function that converts the rectangle object to the circle object is searched in the rectangle class. We have provided such a conversion function in the rectangle class. This conversion operator function returns a circle object. By default conversion operators have the name and return type same as the object type to which it converts to. Here the type of the object is circle and hence the name of the operator function as well as the return type is circle.<br />&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;<br />10. How do I write code that allows to create only one instance of a class?<br />Ans: This is shown in following code snippet.</p>
<p>class sample<br />{<br />static sample *ptr ;<br />private:<br />sample( )<br />{<br />}<br />public:<br />static sample* create( )<br />{<br />if ( ptr == NULL )<br />ptr = new sample ;<br />return ptr ;<br />}<br />} ;<br />sample *sample::ptr = NULL ;<br />void main( )<br />{<br />sample *a = sample::create( ) ;<br />sample *b = sample::create( ) ;<br />}</p>
<p>Here, the class sample contains a static data member ptr, which is a pointer to the object of same class. The constructor is private which avoids us from creating objects outside the class. A static member function called create( ) is used to create an object of the class. In this function the condition is checked whether or not ptr is NULL, if it is then an object is created dynamically and its address collected in ptr is returned. If ptr is not NULL, then the same address is returned. Thus, in main( ) on execution of the first statement one object of sample gets created whereas on execution of second statement, b holds the address of the first object. Thus, whatever number of times you call create( ) function, only one object of sample class will be available.</p>
<img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/archanareddy20.wordpress.com/107/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/archanareddy20.wordpress.com/107/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/archanareddy20.wordpress.com/107/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/archanareddy20.wordpress.com/107/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/archanareddy20.wordpress.com/107/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/archanareddy20.wordpress.com/107/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/archanareddy20.wordpress.com/107/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/archanareddy20.wordpress.com/107/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/archanareddy20.wordpress.com/107/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/archanareddy20.wordpress.com/107/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/archanareddy20.wordpress.com/107/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/archanareddy20.wordpress.com/107/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=archanareddy20.wordpress.com&blog=1543902&post=107&subd=archanareddy20&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://archanareddy20.wordpress.com/2007/07/17/c-faqs-and-interview-questions-3/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/89cc4b2a872a17e79aaf0f7b63efdd47?s=96&#38;d=identicon" medium="image">
			<media:title type="html">archanareddy20</media:title>
		</media:content>
	</item>
		<item>
		<title>C++ faq&#8217;s and interview Questions &#8211; 2</title>
		<link>http://archanareddy20.wordpress.com/2007/07/16/c-faqs-and-interview-questions-2/</link>
		<comments>http://archanareddy20.wordpress.com/2007/07/16/c-faqs-and-interview-questions-2/#comments</comments>
		<pubDate>Mon, 16 Jul 2007 11:07:00 +0000</pubDate>
		<dc:creator>archanareddy20</dc:creator>
				<category><![CDATA[C++]]></category>
		<category><![CDATA[faq]]></category>
		<category><![CDATA[faq's]]></category>
		<category><![CDATA[monster jobs]]></category>
		<category><![CDATA[naukri jobs]]></category>
		<category><![CDATA[tips]]></category>
		<category><![CDATA[tutorials]]></category>

		<guid isPermaLink="false">http://archanareddy20.wordpress.com/2007/07/16/c-faqs-and-interview-questions-2/</guid>
		<description><![CDATA[1. Can we declare a static function as virtual?Ans: No. The virtual function mechanism is used on the specific object that determines which virtual function to call. Since the static functions are not any way related to objects, they cannot be declared as virtual.&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;
2. Can user-defined object be declared as static data member of another [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=archanareddy20.wordpress.com&blog=1543902&post=104&subd=archanareddy20&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>1. Can we declare a static function as virtual?<br />Ans: No. The virtual function mechanism is used on the specific object that determines which virtual function to call. Since the static functions are not any way related to objects, they cannot be declared as virtual.<br />&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;</p>
<p>2. Can user-defined object be declared as static data member of another class?<br />Ans: Yes. The following code shows how to initialize a user-defined object.    <br /> #include     <br />class test   <br /> {    <br /> int i ;     <br /> public :    <br /> test ( int ii = 0 )     <br />{      i = ii ;       }     <br />} ;   <br /> class sample   <br /> {     <br />static test s ;     <br />} ;    <br />test sample::s ( 26 ) ;    <br /> Here we have initialized the object s by calling the one-argument constructor. We can use the same convention to initialize the object by calling multiple-argument constructor.<br />&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;</p>
<p>3. What is forward referencing and when should it be used?<br />Ans: Consider the following program:                        <br />class test                     <br /> {                      <br /> public :                      <br /> friend void fun ( sample, test ) ;          <br /> } ;                     <br /> class sample      <br />{                       <br />public :           <br />            friend void fun ( sample, test ) ;    <br />                   } ;                  <br />    void fun ( sample s, test t )       <br />               {                        // code                         }  <br />                    void main( )             <br />         {                    <br />   sample s ;                  <br />    test t ;                     <br /> fun ( s, t ) ;                 <br />      }<br />This program would not compile. It gives an error that sample is undeclared identifier in the statement friend void fun ( sample, test ) ; of the class test. This is so because the class sample is defined below the class                         test and we are using it before its definition. To overcome this error we need to give forward reference of                         the class sample before the definition of class test. The following statement is the forward reference of                         class sample. Forward referencing is generally required when we make a class or a function as a friend.<br />&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;</p>
<p>4. The istream_withassign class has been derived from the istream class and overloaded assignment                               operator has been added to it. The _withassign classes are much like their base classes except                               that they include overloaded assignment operators. Using these operators the objects of the                               _withassign classes can be copied. The istream, ostream, and iostream classes are made uncopyable                               by making their overloaded copy constructor and assignment operators private.<br />&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;</p>
<p>5. How do I write my own zero-argument manipulator that should work same as hex?<br />Ans: This is shown in following program.<br />#include<br />ostream&amp; myhex ( ostream &amp;o )<br />{<br />o.setf ( ios::hex) ;<br />return o ;<br />}<br />void main( )<br />{<br />cout &lt;&lt; endl &lt;&lt; myhex &lt;&lt; 2000 ;<br />}<br />&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;</p>
<p>6. We all know that a const variable needs to be initialized at the time of declaration. Then how come the program given below runs properly even when we have not initialized p? <br />   #include    <br /> void main( )     {       <br /> const char *p ;        <br />p = &#8220;A const pointer&#8221; ;  <br />      cout &lt;&lt; p ;   <br /> }    <br /> Ans: The output of the above program is &#8216;A const pointer&#8217;. This is because in this program p is declared as &#8216;const char*&#8217; which means that value stored at p will be constant and not p and so  the program works properly<br />&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;</p>
<img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/archanareddy20.wordpress.com/104/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/archanareddy20.wordpress.com/104/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/archanareddy20.wordpress.com/104/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/archanareddy20.wordpress.com/104/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/archanareddy20.wordpress.com/104/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/archanareddy20.wordpress.com/104/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/archanareddy20.wordpress.com/104/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/archanareddy20.wordpress.com/104/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/archanareddy20.wordpress.com/104/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/archanareddy20.wordpress.com/104/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/archanareddy20.wordpress.com/104/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/archanareddy20.wordpress.com/104/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=archanareddy20.wordpress.com&blog=1543902&post=104&subd=archanareddy20&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://archanareddy20.wordpress.com/2007/07/16/c-faqs-and-interview-questions-2/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/89cc4b2a872a17e79aaf0f7b63efdd47?s=96&#38;d=identicon" medium="image">
			<media:title type="html">archanareddy20</media:title>
		</media:content>
	</item>
		<item>
		<title>C++ Design Pattern: What is a Singleton class?</title>
		<link>http://archanareddy20.wordpress.com/2007/07/16/c-design-pattern-what-is-a-singleton-class/</link>
		<comments>http://archanareddy20.wordpress.com/2007/07/16/c-design-pattern-what-is-a-singleton-class/#comments</comments>
		<pubDate>Mon, 16 Jul 2007 03:13:00 +0000</pubDate>
		<dc:creator>archanareddy20</dc:creator>
				<category><![CDATA[C++]]></category>
		<category><![CDATA[faq]]></category>
		<category><![CDATA[faq's]]></category>
		<category><![CDATA[jobs]]></category>
		<category><![CDATA[singleton class]]></category>
		<category><![CDATA[tutorials]]></category>

		<guid isPermaLink="false">http://archanareddy20.wordpress.com/2007/07/16/c-design-pattern-what-is-a-singleton-class/</guid>
		<description><![CDATA[Q: What is a singleton class?A: A class whose number of instances that can be instantiated is limited to one is called a singleton class. Thus, at any given time only one instance can exist, no more.
Q: Can you give me an example, where it is used?A: The singleton design pattern is used whenever the [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=archanareddy20.wordpress.com&blog=1543902&post=102&subd=archanareddy20&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>Q: What is a singleton class?<br />A: A class whose number of instances that can be instantiated is limited to one is called a singleton class. Thus, at any given time only one instance can exist, no more.</p>
<p>Q: Can you give me an example, where it is used?<br />A: The singleton design pattern is used whenever the design requires only one instance of a class. Some examples:<br />Application classes. There should only be one application class. (Note: Please bear in mind, MFC class &#8216;CWinApp&#8217; is not implemented as a singleton class)<br />Logger classes. For logging purposes of an application there is usually one logger instance required.</p>
<p>Q: How could a singleton class be implemented?A: There are several ways of creating a singleton class. The most simple approach is shown below:</p>
<p>Code:<br /><span style="color:#990000;">class CMySingleton<br />{<br />public:<br />static CMySingleton&amp; Instance()<br />{<br />static CMySingleton singleton;<br />return singleton;<br />}<br />// Other non-static member functions<br />private:<br />CMySingleton() {}; // Private constructor<br />CMySingleton(const CMySingleton&amp;); // Prevent copy-construction<br />CMySingleton&amp; operator=(const CMySingleton&amp;); // Prevent assignment<br />};</span></p>
<img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/archanareddy20.wordpress.com/102/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/archanareddy20.wordpress.com/102/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/archanareddy20.wordpress.com/102/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/archanareddy20.wordpress.com/102/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/archanareddy20.wordpress.com/102/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/archanareddy20.wordpress.com/102/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/archanareddy20.wordpress.com/102/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/archanareddy20.wordpress.com/102/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/archanareddy20.wordpress.com/102/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/archanareddy20.wordpress.com/102/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/archanareddy20.wordpress.com/102/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/archanareddy20.wordpress.com/102/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=archanareddy20.wordpress.com&blog=1543902&post=102&subd=archanareddy20&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://archanareddy20.wordpress.com/2007/07/16/c-design-pattern-what-is-a-singleton-class/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/89cc4b2a872a17e79aaf0f7b63efdd47?s=96&#38;d=identicon" medium="image">
			<media:title type="html">archanareddy20</media:title>
		</media:content>
	</item>
		<item>
		<title>Oracle/PLSQL Tutorials</title>
		<link>http://archanareddy20.wordpress.com/2007/06/25/oracleplsql-tutorials/</link>
		<comments>http://archanareddy20.wordpress.com/2007/06/25/oracleplsql-tutorials/#comments</comments>
		<pubDate>Mon, 25 Jun 2007 12:15:00 +0000</pubDate>
		<dc:creator>archanareddy20</dc:creator>
				<category><![CDATA[Oracle]]></category>
		<category><![CDATA[PL/SQL]]></category>
		<category><![CDATA[tutorials]]></category>

		<guid isPermaLink="false">http://archanareddy20.wordpress.com/2007/06/25/oracleplsql-tutorials/</guid>
		<description><![CDATA[
http://www.techonthenet.com/oracle/index.php
       <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=archanareddy20.wordpress.com&blog=1543902&post=35&subd=archanareddy20&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p><a href="http://www.techonthenet.com/oracle/index.php"></p>
<p>http://www.techonthenet.com/oracle/index.php</a></p>
<img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/archanareddy20.wordpress.com/35/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/archanareddy20.wordpress.com/35/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/archanareddy20.wordpress.com/35/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/archanareddy20.wordpress.com/35/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/archanareddy20.wordpress.com/35/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/archanareddy20.wordpress.com/35/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/archanareddy20.wordpress.com/35/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/archanareddy20.wordpress.com/35/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/archanareddy20.wordpress.com/35/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/archanareddy20.wordpress.com/35/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/archanareddy20.wordpress.com/35/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/archanareddy20.wordpress.com/35/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=archanareddy20.wordpress.com&blog=1543902&post=35&subd=archanareddy20&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://archanareddy20.wordpress.com/2007/06/25/oracleplsql-tutorials/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/89cc4b2a872a17e79aaf0f7b63efdd47?s=96&#38;d=identicon" medium="image">
			<media:title type="html">archanareddy20</media:title>
		</media:content>
	</item>
	</channel>
</rss>