2. Using namespace for a project.
3. All switch should have a default statement.
4. Use integer 0 instead of NULL for null pointer.
5. Always treat include file name as case-sensitive to make cross-platform easier because unlike windows, some other platform does case sensitive.
6. The size of built-in types have different length in different platforms. For example, an int type will diff..
7. Below pic:
![](https://i-blog.csdnimg.cn/blog_migrate/378e07ac4037cdd7911f6fe2d8af7559.jpeg)