option A is correct
option B is Dennis Ritchie style/pattern of declaring function
option C have local variables instead of command-line arguments
option D no issues / no comment
Karthik said:
(Thu, Feb 3, 2011 10:19:00 PM)
in unix A option style is used
in turbo-c B option style is used
but they were same
argc is used for count;//argument count
argv is used for storage of variable type;//argument variable
Sam said:
(Mon, Aug 8, 2011 01:20:29 AM)
Nice explanation.
Prashant said:
(Fri, Feb 3, 2012 10:22:28 PM)
Option A is correct .
int argc specifies number of arguments
and the char *argv[] is a pointer array which holds the adress values of all the command line arguments(inputs).