姬長信(Redy)

c – 如何将双引号引入字符串文字?


我使用printf()语句创建了以下输出:
printf("She said time flies like an arrow, but fruit flies like a banana.");

但我想把实际报价单引用双引号,所以输出是

She said “time flies like an arrow, but fruit flies like a banana”.

不会干扰用于在printf()语句中包装字符串文字的双引号.

我怎样才能做到这一点?