Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
argv私の教授と数人の学生は、 nullで終了するかどうかについて議論しています。私の友人は小さなプログラムを書き、それを印刷しましたnullが、別の子供はおそらく単に空白のメモリを読んでいると言いました。誰かがこの議論を解決できますか?
argv
null
標準から:
5.1.2.2.1プログラムの起動...-- argv [argc]はnullポインタでなければなりません。
あ、はい; argvはnullで終了します
規格によれば、「argv [argc]はnullポインタでなければならない」(5.1.2.2.1)。