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.
The first skill most programmers learn is how to use variables in their programming language of choice, since computing usually involves working with data. The C language has specific rules for creating and using variables, which might be familiar to programmers who’ve used another language, but can confuse someone who’s brand new to programming. For example, variable names have to start with an alphabetic character and can contain numbers, but not symbols—unlike some of the more popular scripting languages, C variables must be declared before use so the compiler can keep track of the variable’s data type.
These lessons on Conditional Statements discuss how to create and use variables to store data, how to use constants to create unchangeable variables, and how to write arithmetic statements for performing mathematic equations. We’ll also go over declaring variables, assigning data to variables, and combining declaration and storing data into a single statement.
It covers how to create and use variables to store data, how to use constants to create unchangeable variables, how to write arithmetic statements for performing equations, and conditional statements such as simple if, if-else, if-else if, and switch statements.
You will learn how to declare variables, assign data to variables, and combine declaration and storing data into a single statement, following C's specific rules for creating and using variables.
It is suited for those learning C, including programmers familiar with another language as well as those brand new to programming, since it explains C's specific rules for variables that can confuse newcomers.
The lessons cover Simple If Statements, If-Else Statements, If-Else If Statements, and the Switch Statement.
It helps develop skills in C and C-based programming languages, conditional compilation, conditional expressions, conditional statements, and interactive C.