<?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 for EmbLogic</title>
	<atom:link href="https://www.emblogic.com/blog/comments/feed/" rel="self" type="application/rss+xml" />
	<link>https://www.emblogic.com/blog</link>
	<description>Embedded System and ARM Training</description>
	<lastBuildDate>Mon, 07 Oct 2013 04:00:03 +0000</lastBuildDate>
		<sy:updatePeriod>hourly</sy:updatePeriod>
		<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.9.1</generator>
	<item>
		<title>Comment on Query: by sampath.kumar</title>
		<link>https://www.emblogic.com/blog/10/query-2/#comment-4045</link>
		<dc:creator><![CDATA[sampath.kumar]]></dc:creator>
		<pubDate>Mon, 07 Oct 2013 04:00:03 +0000</pubDate>
		<guid isPermaLink="false">http://www.emblogic.com/blog/?p=7289#comment-4045</guid>
		<description><![CDATA[At Preprocessing stage the expansion of inline  function is done.]]></description>
		<content:encoded><![CDATA[<p>At Preprocessing stage the expansion of inline  function is done.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on problem by jatinder.kumar</title>
		<link>https://www.emblogic.com/blog/09/problem/#comment-4044</link>
		<dc:creator><![CDATA[jatinder.kumar]]></dc:creator>
		<pubDate>Thu, 03 Oct 2013 17:56:35 +0000</pubDate>
		<guid isPermaLink="false">http://www.emblogic.com/blog/?p=7178#comment-4044</guid>
		<description><![CDATA[*p get memory as read only. So when you printf(“%c\n”,–*p–); mesn you are goinh to change the contents of read only memory so that why you are getting segmantion fault]]></description>
		<content:encoded><![CDATA[<p>*p get memory as read only. So when you printf(“%c\n”,–*p–); mesn you are goinh to change the contents of read only memory so that why you are getting segmantion fault</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on C: JATINDER KUMAR by jatinder.kumar</title>
		<link>https://www.emblogic.com/blog/08/c-jatinder-kumar-2/#comment-4043</link>
		<dc:creator><![CDATA[jatinder.kumar]]></dc:creator>
		<pubDate>Thu, 03 Oct 2013 17:52:05 +0000</pubDate>
		<guid isPermaLink="false">http://www.emblogic.com/blog/?p=7112#comment-4043</guid>
		<description><![CDATA[How come?? mean on what basis your answer is?
Is there any change when complier optimize the both?? i even see the assmebly code of both and both are same . So on what basis i can say which one is faster]]></description>
		<content:encoded><![CDATA[<p>How come?? mean on what basis your answer is?<br />
Is there any change when complier optimize the both?? i even see the assmebly code of both and both are same . So on what basis i can say which one is faster</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on pointers by jasmeen</title>
		<link>https://www.emblogic.com/blog/10/pointers-5/#comment-4042</link>
		<dc:creator><![CDATA[jasmeen]]></dc:creator>
		<pubDate>Thu, 03 Oct 2013 16:47:34 +0000</pubDate>
		<guid isPermaLink="false">http://www.emblogic.com/blog/?p=7242#comment-4042</guid>
		<description><![CDATA[you can use instead of getting the input from stdin(scanf)]]></description>
		<content:encoded><![CDATA[<p>you can use instead of getting the input from stdin(scanf)</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on pointers by abhishek.jain</title>
		<link>https://www.emblogic.com/blog/10/pointers-5/#comment-4041</link>
		<dc:creator><![CDATA[abhishek.jain]]></dc:creator>
		<pubDate>Thu, 03 Oct 2013 11:41:52 +0000</pubDate>
		<guid isPermaLink="false">http://www.emblogic.com/blog/?p=7242#comment-4041</guid>
		<description><![CDATA[thnks mam ,
 what is use of commamnd line arguments ?]]></description>
		<content:encoded><![CDATA[<p>thnks mam ,<br />
 what is use of commamnd line arguments ?</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Static linking of libraries. by jasmeen</title>
		<link>https://www.emblogic.com/blog/10/static-linking-of-libraries/#comment-4040</link>
		<dc:creator><![CDATA[jasmeen]]></dc:creator>
		<pubDate>Thu, 03 Oct 2013 09:10:15 +0000</pubDate>
		<guid isPermaLink="false">http://www.emblogic.com/blog/?p=7233#comment-4040</guid>
		<description><![CDATA[No , loader has no role while linkiing]]></description>
		<content:encoded><![CDATA[<p>No , loader has no role while linkiing</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on pointers by jasmeen</title>
		<link>https://www.emblogic.com/blog/10/pointers-5/#comment-4039</link>
		<dc:creator><![CDATA[jasmeen]]></dc:creator>
		<pubDate>Thu, 03 Oct 2013 09:09:13 +0000</pubDate>
		<guid isPermaLink="false">http://www.emblogic.com/blog/?p=7242#comment-4039</guid>
		<description><![CDATA[argc is number of command line arguments
and argv[0] points to name of file , argv[1] points to first command line argument and vice versa
for eg 
u execute
./a.out 1 2 3 4
argc=4 
argv[0]= ./a.out
argv[1]=1
argv[2]=2
argv[3]=3
argv[4]=4]]></description>
		<content:encoded><![CDATA[<p>argc is number of command line arguments<br />
and argv[0] points to name of file , argv[1] points to first command line argument and vice versa<br />
for eg<br />
u execute<br />
./a.out 1 2 3 4<br />
argc=4<br />
argv[0]= ./a.out<br />
argv[1]=1<br />
argv[2]=2<br />
argv[3]=3<br />
argv[4]=4</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on problem by jasmeen.kaur</title>
		<link>https://www.emblogic.com/blog/09/problem/#comment-4037</link>
		<dc:creator><![CDATA[jasmeen.kaur]]></dc:creator>
		<pubDate>Mon, 30 Sep 2013 04:49:42 +0000</pubDate>
		<guid isPermaLink="false">http://www.emblogic.com/blog/?p=7178#comment-4037</guid>
		<description><![CDATA[if it is -- then --*p means u are changing the value at adress p(which is readonly) which will give you segmentation fault . 
*p-- means you are decrementing address i.e now it will point to &#039;e&#039;]]></description>
		<content:encoded><![CDATA[<p>if it is &#8212; then &#8211;*p means u are changing the value at adress p(which is readonly) which will give you segmentation fault .<br />
*p&#8211; means you are decrementing address i.e now it will point to &#8216;e&#8217;</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on problem by jasmeen.kaur</title>
		<link>https://www.emblogic.com/blog/09/problem/#comment-4036</link>
		<dc:creator><![CDATA[jasmeen.kaur]]></dc:creator>
		<pubDate>Sun, 29 Sep 2013 17:25:40 +0000</pubDate>
		<guid isPermaLink="false">http://www.emblogic.com/blog/?p=7178#comment-4036</guid>
		<description><![CDATA[Can u pls tell what is written before *p in printf statement]]></description>
		<content:encoded><![CDATA[<p>Can u pls tell what is written before *p in printf statement</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Doubt: by taruna</title>
		<link>https://www.emblogic.com/blog/09/doubt-2/#comment-4035</link>
		<dc:creator><![CDATA[taruna]]></dc:creator>
		<pubDate>Sun, 29 Sep 2013 08:01:41 +0000</pubDate>
		<guid isPermaLink="false">http://www.emblogic.com/blog/?p=7171#comment-4035</guid>
		<description><![CDATA[The output will be:
This is
http://www.emblogic.com
website

and the first argument is not const char* but it is char*
Whenever we need to parse the same string , first argument in strtok() should be null.]]></description>
		<content:encoded><![CDATA[<p>The output will be:<br />
This is<br />
<a href="http://www.emblogic.com" rel="nofollow">http://www.emblogic.com</a><br />
website</p>
<p>and the first argument is not const char* but it is char*<br />
Whenever we need to parse the same string , first argument in strtok() should be null.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Doubt: by msiddarth</title>
		<link>https://www.emblogic.com/blog/09/doubt-2/#comment-4034</link>
		<dc:creator><![CDATA[msiddarth]]></dc:creator>
		<pubDate>Fri, 27 Sep 2013 18:12:10 +0000</pubDate>
		<guid isPermaLink="false">http://www.emblogic.com/blog/?p=7171#comment-4034</guid>
		<description><![CDATA[strtok() will replace a the characters in the original string with a NULL each time the function is called using the same string, so the original string is modified by the use of strtok().
    The second argument to strtok() can be changed at any time to a different delimiter.
    Only single characters are considered to be delimiters. 
The below example will illustrates the usage of strtok.
#include 
#include 

int main()
{
   const char str[80] = &quot;This is - www.emblogic.com - website&quot;;
   const char s[2] = &quot;-&quot;;
   char *token;
   
   /* get the first token */
   token = strtok(str, s);
   
   /* walk through other tokens */
   while( token != NULL ) 
   {
      printf( &quot; %s\n&quot;, token );
    
      token = strtok(NULL, s);
   }
   
   return(0);
}

the output of the above program will be:
This is 
www.tutorialspoint.com 
website]]></description>
		<content:encoded><![CDATA[<p>strtok() will replace a the characters in the original string with a NULL each time the function is called using the same string, so the original string is modified by the use of strtok().<br />
    The second argument to strtok() can be changed at any time to a different delimiter.<br />
    Only single characters are considered to be delimiters.<br />
The below example will illustrates the usage of strtok.<br />
#include<br />
#include </p>
<p>int main()<br />
{<br />
   const char str[80] = &#8220;This is &#8211; <a href="http://www.emblogic.com" rel="nofollow">http://www.emblogic.com</a> &#8211; website&#8221;;<br />
   const char s[2] = &#8220;-&#8221;;<br />
   char *token;</p>
<p>   /* get the first token */<br />
   token = strtok(str, s);</p>
<p>   /* walk through other tokens */<br />
   while( token != NULL )<br />
   {<br />
      printf( &#8221; %s\n&#8221;, token );</p>
<p>      token = strtok(NULL, s);<br />
   }</p>
<p>   return(0);<br />
}</p>
<p>the output of the above program will be:<br />
This is<br />
<a href="http://www.tutorialspoint.com" rel="nofollow">http://www.tutorialspoint.com</a><br />
website</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on problem by Ram D</title>
		<link>https://www.emblogic.com/blog/09/problem/#comment-4032</link>
		<dc:creator><![CDATA[Ram D]]></dc:creator>
		<pubDate>Wed, 11 Sep 2013 16:58:25 +0000</pubDate>
		<guid isPermaLink="false">http://www.emblogic.com/blog/?p=7178#comment-4032</guid>
		<description><![CDATA[run following code in ur c99 compiler and compaire with the above one

#include
#include

void main()
{
        char *p=&quot;abcdef&quot;;
        for(int i=0;i&lt;=6;i++)
        {
                p = p + (strlen(p)-i);
//              printf(&quot;%c\n&quot;,–*p–);
//              printf(&quot;%c\n&quot;,–*–p);
//              printf(&quot;%c\n&quot;,–*(p–));
                printf(&quot;%p\n&quot;,p);
                printf(&quot;%c\n&quot;,*p);
        }
}]]></description>
		<content:encoded><![CDATA[<p>run following code in ur c99 compiler and compaire with the above one</p>
<p>#include<br />
#include</p>
<p>void main()<br />
{<br />
        char *p=&#8221;abcdef&#8221;;<br />
        for(int i=0;i&lt;=6;i++)<br />
        {<br />
                p = p + (strlen(p)-i);<br />
//              printf(&quot;%c\n&quot;,–*p–);<br />
//              printf(&quot;%c\n&quot;,–*–p);<br />
//              printf(&quot;%c\n&quot;,–*(p–));<br />
                printf(&quot;%p\n&quot;,p);<br />
                printf(&quot;%c\n&quot;,*p);<br />
        }<br />
}</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on C: JATINDER KUMAR by john McArthur</title>
		<link>https://www.emblogic.com/blog/08/c-jatinder-kumar-2/#comment-4029</link>
		<dc:creator><![CDATA[john McArthur]]></dc:creator>
		<pubDate>Sat, 31 Aug 2013 14:30:30 +0000</pubDate>
		<guid isPermaLink="false">http://www.emblogic.com/blog/?p=7112#comment-4029</guid>
		<description><![CDATA[second one]]></description>
		<content:encoded><![CDATA[<p>second one</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on c: JATINDER KUMAR by msiddarth</title>
		<link>https://www.emblogic.com/blog/08/c-jatinder-kumar/#comment-4028</link>
		<dc:creator><![CDATA[msiddarth]]></dc:creator>
		<pubDate>Tue, 27 Aug 2013 05:28:43 +0000</pubDate>
		<guid isPermaLink="false">http://www.emblogic.com/blog/?p=7103#comment-4028</guid>
		<description><![CDATA[You can&#039;t just cast an array to a structure because they&#039;re simply incompatible types. Due to memory alignment constraints, the compiler needs to insert padding between the fields of a structure, so the members are not located at the memory addresses you may expect. Solutions:

    Portable but slower/harder to do manually (preferred): copy manually the fields of the structure to the array.
    Shorter to write but GCC-specific: use the __attribute__((packed)) keyword to make GCC not introduce padding between struct fields.]]></description>
		<content:encoded><![CDATA[<p>You can&#8217;t just cast an array to a structure because they&#8217;re simply incompatible types. Due to memory alignment constraints, the compiler needs to insert padding between the fields of a structure, so the members are not located at the memory addresses you may expect. Solutions:</p>
<p>    Portable but slower/harder to do manually (preferred): copy manually the fields of the structure to the array.<br />
    Shorter to write but GCC-specific: use the __attribute__((packed)) keyword to make GCC not introduce padding between struct fields.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on c: JATINDER KUMAR by ritesh</title>
		<link>https://www.emblogic.com/blog/08/c-jatinder-kumar/#comment-4026</link>
		<dc:creator><![CDATA[ritesh]]></dc:creator>
		<pubDate>Tue, 27 Aug 2013 01:12:45 +0000</pubDate>
		<guid isPermaLink="false">http://www.emblogic.com/blog/?p=7103#comment-4026</guid>
		<description><![CDATA[short integer is of 2 byte.. we have stored the add of char array in structure which contain two member of unsigned short type.. so lt-&gt;a will pick the first two  bytes of your character array which is ch={1,2,3,4,5}
so lt-&gt;a will points to 1st two byte which contains integer value 1,2 and bit representation of these two is 
00000010 00000001 and converting into decimal will give you 513 and similarly lt-&gt;b will take next two integer 3,4 and bit representation is 00000100 00000011=1027]]></description>
		<content:encoded><![CDATA[<p>short integer is of 2 byte.. we have stored the add of char array in structure which contain two member of unsigned short type.. so lt-&gt;a will pick the first two  bytes of your character array which is ch={1,2,3,4,5}<br />
so lt-&gt;a will points to 1st two byte which contains integer value 1,2 and bit representation of these two is<br />
00000010 00000001 and converting into decimal will give you 513 and similarly lt-&gt;b will take next two integer 3,4 and bit representation is 00000100 00000011=1027</p>
]]></content:encoded>
	</item>
</channel>
</rss>
