Enjoying the preview?
This is the free first lesson. Get full access — request a demo or sign in.
Enjoying the preview?
This is the free first lesson. Get full access — request a demo or sign in.
One of the most important programming techniques is the ability to effectively use functions. In this course on Functions, you’ll learn how to modularize your code so that each important task can be defined separately and then the different functions can be used together to form a complete program.
In these lessons, you’ll learn how a value-returning function takes data and transforms it in some way, such as converting a temperature from Celsius to Fahrenheit. You’ll also learn how void functions are used to execute a function without returning a value, like when you want to display a greeting in several different places in a program. We’ll explain how to create each type of function and where to incorporate them into your programs. We’ll also cover how functions make program code easier to read, and also easier to debug by isolating errors to a specific function within all that code.
You will learn how to create code using advanced C functions, how to modularize your code so each task can be defined separately, and the difference between value-returning functions and void functions.
A value-returning function takes data and transforms it in some way, such as converting a temperature from Celsius to Fahrenheit, while a void function executes without returning a value, such as displaying a greeting in several different places in a program.
The course covers Built-In Functions, Value Returning Functions, Void Functions, Functions with Multiple Parameters, and Functions and Variable Scope.
Functions make program code easier to read and also easier to debug by isolating errors to a specific function within the code.