1/14
Flashcards covering key concepts and definitions related to looping structures as discussed in the lecture notes.
Name | Mastery | Learn | Test | Matching | Spaced |
|---|
No study sessions yet.
Looping Structures
Programming routines that implement repetitive tasks.
while Statement
A control structure that executes a block of code repeatedly as long as the condition evaluates to true.
do-while Statement
A control structure that executes a block of code at least once before checking the condition at the end of the loop.
for Statement
A control structure that is used for repetitive tasks with a predetermined count, typically more concise than while statements.
count Variable
A loop control variable that determines how many times the loop will execute.
infinite loop
A loop that continues indefinitely because its terminating condition is never met.
strcmp()
A function that compares two strings character by character.
strlen()
A function that calculates the length of a string, excluding the null character.
fgets()
A function that reads a line of text from a terminal or file.
Academic Integrity Policy
A set of rules that prohibits collaboration and use of unauthorized tools in coursework.
Repetitive tasks
Actions that are performed multiple times, often implemented using loops.
Checkpoint
A condition that determines whether the loop should continue executing or terminate.
Buffer Length
The maximum number of characters that can be read into a string variable.
Null Character
A special character ‘\0’ used to indicate the end of a string in C/C++.
Input from Standard Input
Data that is received by the program, typically via keyboard or terminal.