4 ms·
You input arguments into your program using argc and argv. argc is number of arguments and argv is the list of arguments. There is no string in c so you use ch
by shultays 12y ago
You input arguments into your program using argc and argv. argc is number of arguments and argv is the list of arguments.
There is no string in c so you use char pointers instead. But in previous code he used char, which is usually defines a single string, but main actually inputs an array of string so it should have been char* (pointer to pointer of char, or pointer to 'string')
Basically he did something like this in Java
public static void main(String args)
instead of
public static void main(String args[])