Because according to the C/C++ standards the first parameter of the main is assigned the number of passed parameters by environment. Usually the first parameter is the full file specification of your program. You can check this by running the following code
1 2 3 4 5 6
int main( int argc, char *argv )
printf( "%s\d", argv );
Please visit the Site [URL="http:\\contest.collectiva.in\training\Fundame ntalsofC.aspx"]Collectiva[/URL] To learn Fundamentals of C Programming online Video Training in Tamil. It is very useful for the Beginners. Very soon the Video Training in English will be uploaded.