gpt4 book ai didi

c++ - 在 c 程序开发期间删除注释的地方

转载 作者:塔克拉玛干 更新时间:2023-11-02 23:14:10 26 4
gpt4 key购买 nike

我在程序中添加了评论。

在编译、链接、加载等开发过程中,在哪一步删除。

最佳答案

它被指定为发生在翻译的第 3 阶段 (§:2.2/1):

3 - The source file is decomposed into preprocessing tokens (2.5) and sequences of white-space characters (including comments). A source file shall not end in a partial preprocessing token or in a partial comment. Each comment is replaced by one space character.

[添加了重点]

关于c++ - 在 c 程序开发期间删除注释的地方,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/18050661/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com