Welcome to the C Tutorial! the C programmer’s resources for everything related to the C programming language.
If you are…
- Still struggling to get started with C.
- Not knowing where to start learning C programming easily.
- Not getting much out of the C language.
This C tutorial helps you to solve such problems.
Section 1. Getting Started with C
- Introduction to C programming language – introduce to you the C Programming language and what you can do with C.
- Set up an IDE – learn how to set up the CodeBlocks IDE.
- Hello, World! – develop the first C program called Hello, World!
Section 3. Data Types
- Data Types – learn about various types that C supports.
- Integer – guide you on the C integer types.
- float – explain to you how the floating-point number works.
- Character – understand how C manages character data.
- Enum – learn how to define named integer constants using enumeration.
Section 4. Operators
- Arithmetic operators – introduce to you the arithmetic operators in C.
- Assignment Operators – show you how to use a simple assignment operator and compound assignment operators effectively.
- Relational Operators – guide you on how to use relational operators to compare two values.
- Logical Operators – learn how to use the logical operators, including logical AND, logical OR, and logical NOT operator.
Section 5. Flow Control
- if – show you how to execute one or more statements when a condition is true.
- if…else – learn how to execute other statements when the condition in the if-clause is
false
. - Ternary operator – shows you how to use the ternary operator to make the code more concise.
- switch…case – explain the switch…case statement.
- for Loop – learn how to use the for loop statement to execute a code block multiple times.
- while – guide you on how to use while statement to carry a loop as long as a condition is true.
- do…while – show you how to use the do…while statement to perform a loop based on a condition.
- break – learn how to use the
break
statement to exit a loop early. - continue – show you how to skip the current iteration and start a new one using the
continue
statement. - goto – learn how to use (not use) the
goto
statement.
Section 7. Pointer Basics
- Pointer – help you understand the basic pointer concept.
Section 9. Functions
- Function – show you how to define a custom function in C.
- Pass by value – learn how to pass arguments to a function by value.
- Pass by reference – explain to you how to pass arguments to a function by reference.
- Recursive function – introduce to you the recursive functions and how to implement them in C.
Section 10. Memory Management
- Dynamic Memory Allocation – show you how to allocate memory dynamically.
- Typedef – learn how to define a new data type name.
Section 11. Advanced Pointers
- Function Pointers – learn the basic file input/output function.
Section 12. File I/O
C standard library provides you with some handy functions for manipulating files. In this section, you’ll learn the most commonly used file I/O functions in C.
- File I/O – learn the basic file input/output function.
- Read a Text File – show you how to read a text file.
- Write a Text File – guide you on how to write a text file.
- Check if a File Exists – show you how to check if a file exists.
- Write binary data into a file with fwrite() – learn how to write binary data into a file using the
fwrite()
function - Read binary data from a file with fread() – guide you on how to read data from a file using the
fread()
function. - Delete a file: remove() – show you how to delete a file using the remove() function.
- Rename a file: rename() – show you how to rename a file using the rename() function.
Section 13. C References
- C references – provide you with the C language references.
Was this tutorial helpful ?