<?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: </title>
	<atom:link href="https://www.emblogic.com/blog/01/6031/feed/" rel="self" type="application/rss+xml" />
	<link>https://www.emblogic.com/blog/01/6031/</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>By: msiddarth</title>
		<link>https://www.emblogic.com/blog/01/6031/#comment-3629</link>
		<dc:creator><![CDATA[msiddarth]]></dc:creator>
		<pubDate>Sat, 02 Feb 2013 03:35:49 +0000</pubDate>
		<guid isPermaLink="false">http://emblogic.org/blog/?p=6031#comment-3629</guid>
		<description><![CDATA[Actually argc and argv are command line parameters. argc means number of commands entered via command line and the entered command is stored as a string in argv which is a character of pointers.
lets take an example
when we want to execute a program we type the command as
root@localhost~]#./a.out
This command is treated as 1 by argc and the ./a.out is stored in argv[0].
To get the result you can write a simple program as
 int main(int argc,char *argv[])
{
     printf(&quot; Command number: %d\n&quot;,argc);
     printf(&quot; Command name: %s\n&quot;,argv[0]);
     return 0;
}
Subsequently the number of commands entered are stored in argv for example
root@localhost~]#./a.out hello world
argv[0] - ./a.out
argv[1] - hello
argv[2] - world
and number of commands are three]]></description>
		<content:encoded><![CDATA[<p>Actually argc and argv are command line parameters. argc means number of commands entered via command line and the entered command is stored as a string in argv which is a character of pointers.<br />
lets take an example<br />
when we want to execute a program we type the command as<br />
root@localhost~]#./a.out<br />
This command is treated as 1 by argc and the ./a.out is stored in argv[0].<br />
To get the result you can write a simple program as<br />
 int main(int argc,char *argv[])<br />
{<br />
     printf(&#8221; Command number: %d\n&#8221;,argc);<br />
     printf(&#8221; Command name: %s\n&#8221;,argv[0]);<br />
     return 0;<br />
}<br />
Subsequently the number of commands entered are stored in argv for example<br />
root@localhost~]#./a.out hello world<br />
argv[0] &#8211; ./a.out<br />
argv[1] &#8211; hello<br />
argv[2] &#8211; world<br />
and number of commands are three</p>
]]></content:encoded>
	</item>
</channel>
</rss>
