<?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: Significance of main(int argc, char *argv[]) ?</title>
	<atom:link href="https://www.emblogic.com/blog/09/significance-of-mainint-argc-char-argv/feed/" rel="self" type="application/rss+xml" />
	<link>https://www.emblogic.com/blog/09/significance-of-mainint-argc-char-argv/</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: m.siddarth</title>
		<link>https://www.emblogic.com/blog/09/significance-of-mainint-argc-char-argv/#comment-208</link>
		<dc:creator><![CDATA[m.siddarth]]></dc:creator>
		<pubDate>Fri, 09 Sep 2011 08:11:06 +0000</pubDate>
		<guid isPermaLink="false">http://emblogic.org/blog/?p=855#comment-208</guid>
		<description><![CDATA[Before the modern graphical interface, there was the command-line interface. DOS and Unix are examples. The command line is the line you type to run your program in a command-line environment. Suppose you have a program in a file named hello. Then the command line to run it might look like this in Unix:
$ hello
Or it might look like this in a Windows command-line mode, such as XP&#039;s Command Prompt:
C&gt; hello
Command-line arguments are additional items on the same line. Here&#039;s an example:

% hello -r Ginger

C compilers allow main() to have no arguments or else to have two arguments. (Some implementations allow additional arguments) With two arguments, the first argument is the number of strings in the command line. By tradition (but not by necessity), this int argument is called argc for argument count. The system uses spaces to tell when one string ends and the next begins. 
The second argument is an array of pointers to strings. Each string on the command line is stored in memory and has a pointer assigned to point to it. By convention, this array of pointers is called argv, for argument values. When possible (some operating systems don&#039;t allow this), argv[0] is assigned the name of the program itself. Then argv[1] is assigned the first following string, and so on.]]></description>
		<content:encoded><![CDATA[<p>Before the modern graphical interface, there was the command-line interface. DOS and Unix are examples. The command line is the line you type to run your program in a command-line environment. Suppose you have a program in a file named hello. Then the command line to run it might look like this in Unix:<br />
$ hello<br />
Or it might look like this in a Windows command-line mode, such as XP&#8217;s Command Prompt:<br />
C&gt; hello<br />
Command-line arguments are additional items on the same line. Here&#8217;s an example:</p>
<p>% hello -r Ginger</p>
<p>C compilers allow main() to have no arguments or else to have two arguments. (Some implementations allow additional arguments) With two arguments, the first argument is the number of strings in the command line. By tradition (but not by necessity), this int argument is called argc for argument count. The system uses spaces to tell when one string ends and the next begins.<br />
The second argument is an array of pointers to strings. Each string on the command line is stored in memory and has a pointer assigned to point to it. By convention, this array of pointers is called argv, for argument values. When possible (some operating systems don&#8217;t allow this), argv[0] is assigned the name of the program itself. Then argv[1] is assigned the first following string, and so on.</p>
]]></content:encoded>
	</item>
</channel>
</rss>
