Click to flip and see the description!
It is advisable to learn and memorize some of the most commonly used variable types. This is because C is a programming language based on data types. We need to know the data type to declare a variable's name. So, learning variable type is the foundation of writing a C program.
Learning a programming language needs the habit of reading too! Practice reading C programs will help you to understand fundamentals and practical examples. After reading the sample code, you can try to code it in your way and see if it works.
Anytime you use code more than once, consider putting it into a function instead. This will make your code shorter and more readable. Also, with this, you don't need to write the same commands multiple times!
No one likes to scroll through hundreds of lines of code. It is more recommended to break down that hundred of lines into several small files, and then include all the small files into a main file. This will make the documentation tidier and if something happens, it will be more easier to debug it.
Since C doesn't really care about white spaces, a lot of people tend to cram their code into condensed pieces and lines. However, it is better if we add some spaces to the code to make the code more readable. Programmers often works in groups, and readable codes are crucial to avoid miscommunication in the group.