Tips and Tricks (C)



    

Tips and Tricks (Flash Cards)

Click to flip and see the description!


Learn the Variable Types

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.

Learn from Sample Code

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.

Write Functions

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!

Break Apart a Big File

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.

Use White Spaces

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.


1 / 5



Tips and Tricks Videos


Tips 1 C
VoxelRifts

This video is about VoxelRifts' 2 years journey in learning C

Tips 2 C
Telusko

This video is about 17 tricks in using printf() in C

Tips 3 C
Low Level Learning

This video is about tips and explanation of pointers in C


    



Course Videos


Course 1 C
freeCodeCamp.org

A course about core concepts in C programming language

Course 2 C
Bro Code

A C tutorial for beginners (full course)

Course 3 C
Caleb Curry

A C programming crash course all-in-one tutorials

Course 4 C
Fireship

A brief introduction of the programming language C

Course 5 C
Portfolio Courses

A full course on C programming for beginners