[taoge@localhost learn_c]$ strings -f * | grep "my dear"
a.out: oh, my dear, c is %d
test.c: printf("oh, my dear, c is %d\n", c);
[taoge@localhost learn_c]$
通过strings命令确定某个.c被编译到哪个.o中去了
本文展示了一个简单的C语言程序,使用printf函数打印带有变量的字符串。通过一个具体示例,说明了如何在C语言中将变量嵌入到输出字符串中。

被折叠的 条评论
为什么被折叠?



