Objective-c main routine, what is: int argc, const char * argv[]

后端 未结 6 1365
长情又很酷
长情又很酷 2021-02-05 07:40

What are the arguments passed into the main method of a command-line program:

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

what is the first int mea

6条回答
  •  灰色年华
    2021-02-05 08:32

    Just to add to the other answers - Objective-C targets both OS X and iOS. And while there is not much value in iOS command line applications, the shell on OS X is still widely used and there are lot of people writing command line tools.

提交回复
热议问题