Check agruments passing in C++,
Hello everyone,
I am a windows' VB programmer, so either
linux programing or C++ is new to me.
when I use KDevelop to create a simple
console program, The main function is auto
declared like this:
int main (int argc, char * argv[]) {
};.
I know that the declaration: char * variablesname
is used to declare a pointer; the declaration
char variablesname[] is used to declare a array.
and I hear that pointer, some how, is a special kind
of arrays.
So that what does the declaration char * argv[] means?
How can I access to the agruments pass to my program?
|