• 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
int question
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

int question


  • Subject: int question
  • From: Brian Howard <email@hidden>
  • Date: Tue, 5 Jun 2001 12:36:12 -0400

Would someone be kind enough to explain this line of code:

int main (int argc, const char * argv[])

I can find no reference to "argc" or "const" or "argv", and I do not understand the use of the () at all.

The best I can guess at is that the variable "main" is an integer that could be either "argc" or the product of "const" times "argv[]".

Damn, I hate having to ask these dumb ass questions. Thanks again, Apple.

Brian E. Howard
Cocoa Cult Central


  • Follow-Ups:
    • Re: int question
      • From: Finlay Dobbie <email@hidden>
    • Re: int question
      • From: Scott Anguish <email@hidden>
  • Prev by Date: int question
  • Next by Date: Re: Newbie question regarding Learning Cocoa
  • Previous by thread: Re: int question
  • Next by thread: Re: int question
  • Index(es):
    • Date
    • Thread