C syntax and other concepts Flashcards
named data storage location in computer memory
variable
2 main categories of data types
Integer variables
Floating-point variables
variables with decimals
Floating-point variables
variables with signed and unsigned integers
Integer variables
3 major scopes rules in c [variable declaration]
- local variable
- formal variable
- global variable
variable declared within a function
local variable
declared arguments of a function
formal variable
declared outside all functions
global variable
2 types of constants
- literal constant
2. symbolic constant
constants that can still be changed during program execution
literal constant
constants that can still be changed during program execution
literal constant
symbol that instructs to perform operands
operators
categories of operators
- assignment operator
- logical operators
- mathematical operators
operator used for assigning value
Assignment operators
two kinds of mathematical operators
- Unary mathematical operators
2. Binary mathematical operators
operators that compare expressions
Relational operators
two types of conditional statements
- If
2. switch
pre-defined loops
for loops
open-ended loops
while and do loops