1/11
These flashcards cover key concepts related to functions, loops, and control statements in C programming.
Name | Mastery | Learn | Test | Matching | Spaced |
---|
No study sessions yet.
break statement
Used to terminate a loop or switch statement immediately.
continue statement
Skips the current iteration of a loop and proceeds to the next iteration.
function
A block of code designed to perform a specific task, which can be reused throughout a program.
User-defined functions
Functions created by the programmer to perform specific operations.
Library functions
Pre-defined functions provided by programming libraries, such as printf() in C.
for loop
A control flow statement for specifying iteration, which repeats a block of code a predetermined number of times.
while loop
A control flow statement that executes a block of code as long as a specified condition is true.
do-while loop
A post-test loop that guarantees at least one execution of the loop body before checking the condition.
nested loop
A loop inside another loop, used for multi-dimensional data structures or complex iteration patterns.
relational operators
Operators that compare two values and return a Boolean result, such as ==, !=, >,
logical operators
Operators used to combine multiple Boolean expressions, such as AND (&&), OR (||), and NOT (!).
random number generation
The process of generating a sequence of numbers that cannot be reasonably predicted better than by random chance.