| |
GeekInterview.com > Tech FAQs > Programming > Java
| Print | |
Question:
What is the difference between java command line arguments and C command line arguments
|
| July 07, 2005 01:22:41 |
#1 |
| sailaja |
Member Since: Visitor Total Comments: N/A |
RE:
What is the difference between java command line arguments and C command line arguments |
| In C and C++, the system passes two arguments to a program: argc and argv. argc specifies the number of arguments stored in argv. argv is a pointer to an array of characters containing the actual arguments. In Java, the system passes a single value to a program: args. args is an array of Strings that contains the command-line arguments. |
| |
Back To Question | |