Why is argc an 'int' (rather than an 'unsigned int')?

后端 未结 13 2240
心在旅途
心在旅途 2021-01-31 01:37

Why is the command line arguments count variable (traditionally argc) an int instead of an unsigned int? Is there a technical reason for t

13条回答
  •  说谎
    说谎 (楼主)
    2021-01-31 02:01

    Just a simple question: Do you expect more than 231 (or even more than 215) command line arguments? I doubt that most operating systems could handle that many.

提交回复
热议问题