印刷QUOT; (双引号)用C [英] Printing " (double quote) in C

查看:100
本文介绍了印刷QUOT; (双引号)用C的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我写一个C code从文件读取,并生成一个中间 .C 文件。
要做到这一点我用 fprintf中()打印到该中间文件。

I am writing a C code which reads from a file and generates an intermediate .c file. To do so I use fprintf() to print into that intermediate file.

我如何打印

推荐答案

您可以使用转义符 \\例如

puts( "\"This is a sentence in quotes\"" );

printf( "Here is a quote %c", '\"' );

printf( "Here is a quote %c", '"' );

这篇关于印刷QUOT; (双引号)用C的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆