Re: int question
Re: int question
- Subject: Re: int question
- From: Stéphane Sudre <email@hidden>
- Date: Tue, 5 Jun 2001 20:11:25 +0200
On mardi, juin 5, 2001, at 06:25 PM, Brian Howard wrote:
Would someone be kind enough to explain what this line of code does:
int main (int argc, const char * argv[])
I know it's declaring integer variables, but I can't find any reference
to "argc" or "const char * argv[]", and I can find nothing to explain
the use of the ().
int (1) main (int argc (2), const char * argv[] (3))
(1) return code returned by the application (sic)
(2) number of arguments sent to the application
(3) array of arguments sent to the application
argv[0] is the application IIRC
References: | |
| >int question (From: Brian Howard <email@hidden>) |