What's the difference b/w Java command line arg.s & C command line arg.s?

Showing Answers 1 - 3 of 3 Answers

Gopi

  • Oct 26th, 2005
 

C Command line arg start from filename whose arg[0]. but in file name is not a arg.

  Was this answer useful?  Yes

sushi

  • Nov 5th, 2005
 

well,command line args in case of java are stringsi.e they are of type strings,this is not the case in c,it is not of type string.

  Was this answer useful?  Yes

Paramesh.A

  • Nov 11th, 2005
 

THERE  IS ONE MAJOR DIFFERENCE IN COMMANDLINE ARGUMENTS  OF JAVA AND C.LET US ASSUME THERE IS AN EXECUTBLE FILE  NAMED"COPY.EXE", WHICH SOURCE CODE IS IN C AND TAKES 2 COMMANDLINE ARGUMENTS  THEN WE WILL RUN IT  AS SHOWN BELOW C:>COPY SOURCE,DEST    ->HERE "COPY" IS TAKEN AS FIRST ARGMENT,SOURCE , DEST AS SECOND AND THIRD ARGUMENTS RESPECTIVELY ,IN JAVA IT WILL BE TAKEN FROM "SOURCE", IF "COPY" IS CLASS FILE 

Give your answer:

If you think the above answer is not correct, Please select a reason and add your answer below.