<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	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/"
		>
<channel>
	<title>Comments on: C Interview Questions &#8211; string literal, function pointer, structure pointer, sizeof operator</title>
	<atom:link href="http://www.interviewmantra.net/2009/01/function-pointer-structure-pointer.html/feed" rel="self" type="application/rss+xml" />
	<link>http://www.interviewmantra.net/2009/01/function-pointer-structure-pointer.html</link>
	<description>Your mantra to job success</description>
	<lastBuildDate>Fri, 10 Feb 2012 11:11:00 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
	<item>
		<title>By: Mohitmathur1302</title>
		<link>http://www.interviewmantra.net/2009/01/function-pointer-structure-pointer.html/comment-page-1#comment-27537</link>
		<dc:creator>Mohitmathur1302</dc:creator>
		<pubDate>Wed, 28 Sep 2011 20:04:00 +0000</pubDate>
		<guid isPermaLink="false">http://localhost/wordpress/2009/01/c-interview-questions-string-literal-function-pointer-structure-pointer-sizeof-operator/#comment-27537</guid>
		<description>address of pointer is stored is of type &quot; int long&quot; which means size is 4 (depends upon the processor 16 bit or 32 bit) thats why it is returning size is 4 in above c code snippet. 
hope this helps you .</description>
		<content:encoded><![CDATA[<p>address of pointer is stored is of type &#8221; int long&#8221; which means size is 4 (depends upon the processor 16 bit or 32 bit) thats why it is returning size is 4 in above c code snippet. <br />
hope this helps you .</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Atul Ujjwal</title>
		<link>http://www.interviewmantra.net/2009/01/function-pointer-structure-pointer.html/comment-page-1#comment-26432</link>
		<dc:creator>Atul Ujjwal</dc:creator>
		<pubDate>Mon, 01 Aug 2011 13:10:03 +0000</pubDate>
		<guid isPermaLink="false">http://localhost/wordpress/2009/01/c-interview-questions-string-literal-function-pointer-structure-pointer-sizeof-operator/#comment-26432</guid>
		<description>@Stuart: actually d size of every pointer in c is of 4 bytes, whether it is char or int doesn&#039;t make any difference...</description>
		<content:encoded><![CDATA[<p>@Stuart: actually d size of every pointer in c is of 4 bytes, whether it is char or int doesn&#8217;t make any difference&#8230;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Atul Ujjwal</title>
		<link>http://www.interviewmantra.net/2009/01/function-pointer-structure-pointer.html/comment-page-1#comment-26431</link>
		<dc:creator>Atul Ujjwal</dc:creator>
		<pubDate>Mon, 01 Aug 2011 13:09:37 +0000</pubDate>
		<guid isPermaLink="false">http://localhost/wordpress/2009/01/c-interview-questions-string-literal-function-pointer-structure-pointer-sizeof-operator/#comment-26431</guid>
		<description>@Stuart: actually d size of every pointer in c is of 4 bytes, wheather it is char or int doesn&#039;t make any difference...</description>
		<content:encoded><![CDATA[<p>@Stuart: actually d size of every pointer in c is of 4 bytes, wheather it is char or int doesn&#8217;t make any difference&#8230;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: dkasb</title>
		<link>http://www.interviewmantra.net/2009/01/function-pointer-structure-pointer.html/comment-page-1#comment-24683</link>
		<dc:creator>dkasb</dc:creator>
		<pubDate>Thu, 26 May 2011 07:42:38 +0000</pubDate>
		<guid isPermaLink="false">http://localhost/wordpress/2009/01/c-interview-questions-string-literal-function-pointer-structure-pointer-sizeof-operator/#comment-24683</guid>
		<description>u all guys are not familiar with C.
so please go to library and read some good book on C.</description>
		<content:encoded><![CDATA[<p>u all guys are not familiar with C.<br />
so please go to library and read some good book on C.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: anonymous</title>
		<link>http://www.interviewmantra.net/2009/01/function-pointer-structure-pointer.html/comment-page-1#comment-23350</link>
		<dc:creator>anonymous</dc:creator>
		<pubDate>Tue, 19 Apr 2011 19:49:00 +0000</pubDate>
		<guid isPermaLink="false">http://localhost/wordpress/2009/01/c-interview-questions-string-literal-function-pointer-structure-pointer-sizeof-operator/#comment-23350</guid>
		<description>@Stuart, @Steven
&gt; Are you talking about a 4 bit byte in your answer?

i think steven has a typo, he meant bytes there instead of bits.</description>
		<content:encoded><![CDATA[<p>@Stuart, @Steven<br />
&gt; Are you talking about a 4 bit byte in your answer?</p>
<p>i think steven has a typo, he meant bytes there instead of bits.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Steven</title>
		<link>http://www.interviewmantra.net/2009/01/function-pointer-structure-pointer.html/comment-page-1#comment-17639</link>
		<dc:creator>Steven</dc:creator>
		<pubDate>Wed, 08 Dec 2010 15:44:21 +0000</pubDate>
		<guid isPermaLink="false">http://localhost/wordpress/2009/01/c-interview-questions-string-literal-function-pointer-structure-pointer-sizeof-operator/#comment-17639</guid>
		<description>@Stuart, the C standard does not define the number of bits in a byte, but states that sizeof(char) will ALWAYS be 1, regardless of bits per byte.

sizeof(char*) is not defined by the standard. It is equal to the size of any other pointer, ie sizeof(void*), which on modern operating systems and computers will be 4 or 8 BYTES.</description>
		<content:encoded><![CDATA[<p>@Stuart, the C standard does not define the number of bits in a byte, but states that sizeof(char) will ALWAYS be 1, regardless of bits per byte.</p>
<p>sizeof(char*) is not defined by the standard. It is equal to the size of any other pointer, ie sizeof(void*), which on modern operating systems and computers will be 4 or 8 BYTES.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Steven</title>
		<link>http://www.interviewmantra.net/2009/01/function-pointer-structure-pointer.html/comment-page-1#comment-17638</link>
		<dc:creator>Steven</dc:creator>
		<pubDate>Wed, 08 Dec 2010 15:40:44 +0000</pubDate>
		<guid isPermaLink="false">http://localhost/wordpress/2009/01/c-interview-questions-string-literal-function-pointer-structure-pointer-sizeof-operator/#comment-17638</guid>
		<description>Using a global integer to store return values in is ridiculous, and why would you return a pointer to it? You will not be employed by a reputable company by writing such code.</description>
		<content:encoded><![CDATA[<p>Using a global integer to store return values in is ridiculous, and why would you return a pointer to it? You will not be employed by a reputable company by writing such code.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Stuart Semon</title>
		<link>http://www.interviewmantra.net/2009/01/function-pointer-structure-pointer.html/comment-page-1#comment-439</link>
		<dc:creator>Stuart Semon</dc:creator>
		<pubDate>Tue, 26 Jan 2010 07:48:58 +0000</pubDate>
		<guid isPermaLink="false">http://localhost/wordpress/2009/01/c-interview-questions-string-literal-function-pointer-structure-pointer-sizeof-operator/#comment-439</guid>
		<description>43.What is the value of sizeof(a) /sizeof(char *) in C code snippet below
char *a[4]={“sridhar”,”raghava”,”shashi”,”srikanth”}; explain

Are you talking about a 4 bit byte in your answer?
Actually a char is 8 bits - 1 byte.
the size of char * is 8 bits 1 byte as well.
The sizeof operator returns the size in bytes of its operand.

The answer is still the same but the explaination is incorrect.</description>
		<content:encoded><![CDATA[<p>43.What is the value of sizeof(a) /sizeof(char *) in C code snippet below<br />
char *a[4]={“sridhar”,”raghava”,”shashi”,”srikanth”}; explain</p>
<p>Are you talking about a 4 bit byte in your answer?<br />
Actually a char is 8 bits &#8211; 1 byte.<br />
the size of char * is 8 bits 1 byte as well.<br />
The sizeof operator returns the size in bytes of its operand.</p>
<p>The answer is still the same but the explaination is incorrect.</p>
]]></content:encoded>
	</item>
</channel>
</rss>

<!-- Performance optimized by W3 Total Cache. Learn more: http://www.w3-edge.com/wordpress-plugins/

Minified using disk: basic
Page Caching using disk: enhanced

Served from: www.interviewmantra.net @ 2012-02-10 23:22:48 -->
