Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations derfloh on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

String args[] and String argv[]

Status
Not open for further replies.

yytan

Programmer
May 8, 2002
113
MY
hi there

may i know what is the different between <b>String args[]</b> and <b>String argv[]</b>?

thanks!
 
if you mean the difference beyond the variable name, none.

-pete

 
Dear palbano;

so when should i use String argv[]?

if possible, can i have a short example to differentiate between them?

thanks!
 
Let's try that again.

Question: what is the different

Answer: none

-pete

 
Dear Pete;

ok.

since they have no difference, i dun understand why sun want to introduce both of them?
 
yytan,

What is your background/experience with programming? Variable names are user defined and only provide a possible hint as to their value/use/purpose etc.

Your hung up on a insignificant issue. Starting out programming should be fun. You don’t have a million line legacy application that you can break.

You have nothing to fear from writing some code and running it to see what happens, you can’t harm anything. Therefore write some code, run it, observe the actions and results. Repeat. Have fun!

-pete


 
ok, i got what u meant, i have tried out, actually they dont have any differents.

i can put any name i like, for example &quot;abc&quot;.

thanks for ur info :)
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top