Learn C: Functions and Structures
Organize C programs with functions and structures: define and call functions, pass values and pointers, use prototypes and scope rules, then group related data into structs, arrays of structs and typedefs, with a project in each module.
- Beginner level
- 2 modules
- 10 lessons
- 32 tasks and questions
Syllabus
01FunctionsWrite reusable C functions: return values and void, parameters passed by value, pointers for functions that modify their arguments, prototypes, scope and static variables, ending with a change-machine project.5 lessons
02StructuresGroup related data with structs: define and initialize them, access members with dot and arrow, pass them to functions by value or by pointer, build arrays of structs, use typedef and nesting, and finish with an inventory project.5 lessons