C是什么
为了解决眼前问题,由开发现场的人发明
虽然使用方便,但看上去不大顺眼
如果不熟悉的人稀里糊涂地使用了它,难免会带来“悲剧”
C语言发展历程
C语言的发展历程可以用下图来清晰的表达
关于C的使用
从C是什么中可以看出,C的使用需要处处提防,最好做到下面这些:
- 提高编译器的告警级别
- 不可无视或者制止编译器的告警
- 可以参照C的宝典K&R(Brian Kernighan和Dennis Ritchie合著的The C Programming Language)
C的理念
- Trust the programmer
- Don't prevent the programmer from doing what needs to be done(不要阻止程序员去做需要做的事情)
- Keep the language small and simple
- Provide only way to do an operation
- Make it fast,even if it is not guaranteed to be portable(就算不能保证可移植性,也要追求运行效率)
以上全部内容均根据《征服C指针》整理得到,本文只是记录学习过程中觉得比较有用的东西