在Brian Kernighan和Dennis Ritchie 的C编程语言之后,一些最受初学者青睐的书最终被证明是最好避免的,例如Herb Schildt甚至O'Reilly Practical C Programming的任何东西,似乎没有替代这些.否则大多数可用的材料都是关于C++的.
除了K&R和我已经拥有的优秀的C:A参考手册之外,还有哪些其他书籍最适合学习用C语言编写代码(普通C89而不是C++),而不学习一路上的不良做法?
如果我使用c89 vs c99编译以下程序有区别吗?我得到相同的输出.两者之间真的有区别吗?
#include <stdio.h>
int main ()
{
// Print string to screen.
printf ("Hello World\n");
}
gcc -o helloworld -std=c99 helloworld.c
vs
gcc -o helloworld -std=c89 helloworld.c
Run Code Online (Sandbox Code Playgroud)