• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: int question
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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>)

  • Prev by Date: Is This Right?
  • Next by Date: Re: My Newbie Learning Question
  • Previous by thread: Re: int question
  • Next by thread: int question
  • Index(es):
    • Date
    • Thread