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.
c99 standard 5.2.1.1 Trigraph sequences
2 例 次のソース行
printf("Eh???/n");
になります (トライグラフ シーケンス ??/ の置換後)
printf("Eh?\n");
トリグラフ シーケンスを置き換えると言っていますが、そうではありません。
印刷中です"Eh???/n"
"Eh???/n"
何か不足していますか?
gcc では、トリグラフはデフォルトで無効になっています。gcc を使用している場合は、コンパイルし-trigraphsてトリグラフを有効にします。
-trigraphs
gcc -trigraphs source.c