Learn C Programming from Scratch

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

Section 2. Variables & constants

  • Variables – declare and use variables in the C program.
  • Constants – learn how to define constants that hold values.
  • Comments – show you how to document the code.

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 6. Arrays

  • Array – explain to you the array type that contains other types
  • String – learn about strings and how to manipulate strings effectively.

Section 7. Pointer Basics

  • Pointer – help you understand the basic pointer concept.

Section 8. Structure and Union

  • Structure – show you how to use the structure type that consists of multiple variables.
  • Union – explain to you how the union type works in C.

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

Section 11. Advanced Pointers

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.

Section 13. C References

  • C references – provide you with the C language references.
Was this tutorial helpful ?