
Explore the basics of c programming by writing a simple program and compiling with gcc on linux. Understand main and return codes, and how stdio.h and printf enable output.
Declare typed variables in C with a type and name, initialize them, and print integers and floating point values using format strings such as %d and %f.
Explore pointers and addresses in C, learn how variables map to memory blocks, print addresses, dereference pointers to access values, and understand pass-by-reference concepts for memory manipulation.
Learn to take user input with scanf by storing values at variable addresses using format specifiers like %d, and handle multiple inputs and whitespace.
Explore how arithmetic operations work in C, including addition, subtraction, multiplication, division, and modulus, with emphasis on order of operations and integer versus floating point results and type promotion.
Explore booleans and decision statements in C by using stdbool.h, or 0/1 representations in older versions, and implement if, else, and else if with age examples.
Learn how to use logical operators in C: and, or, not, for combining conditions, and how switch statements map numbers to days with case and default.
Explore the while, do while, and for loops in C, and learn how each repeats code under conditions, with increments and termination behavior illustrated by printing 0–10.
Master character variables in C as numbers, using single quotes for literals, and printing with %c. Explore ascii values, uppercase–lowercase conversion, and input with scanf, getc, and putc.
Explore how arrays in C store homogeneous values, declare with a size, and initialize elements. Indexing out of bounds and the lack of checks pose a security risk.
Introduce functions in C as reusable code blocks that run when called, showing return type, name, and parameters, and explain implicit versus explicit declarations with header files later.
Learn how to write functions that use pointers to modify values in memory via pass by reference, including how to pass addresses, dereference, and even return pointers.
Explore how pointers interact with arrays in C, including pointing to array elements, pointer arithmetic, and summing elements with a loop.
Learn how strings in C are represented as character arrays, with array and pointer declarations, and how null terminators and string.h functions like strcat and strcmp shape their use.
The C programming language is one of the foundational languages in Computer Science. As a low-level programming language, C allows you to interface with hardware and operating system calls. The control that C provides makes it ideal for operating system and system level applications. C also makes a great introduction to the world of low-level programming.
Looking for an introduction to C programming? Check out this free course on the fundamentals of programming in C! This course will cover the basic concepts of C programming, including variables, pointers, arrays, and functions! By the end of this course, you will be able to write basic C programs.
This course will start by teaching you the basic concepts of programming in C. You will learn about basic variables, printing data, and taking inputs. From here, you will learn how to run operations with the variables you create, as well as run logical operators. Next, you will learn how to create control flow using Boolean operators. After this, you will start to use repetition structures like loops to create code that repeats a set number of times. You will finish off learning about some applications of pointers, for concepts like arrays, pass by reference functions, and strings.