What are Control Structures and what do they do? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 1

What are Control Structures and what do they do?

15th Aug 2020, 6:09 PM
Juan Jurado
Juan Jurado - avatar
3 Answers
+ 3
A control structure is like a block of programming that analyses variables and chooses a direction in which to go based on given parameters. The termĀ flow controlĀ details the direction the program takes. šŸ‘‡This could help you morešŸ‘šŸ˜Š https://www.geeksforgeeks.org/control-structures-in-programming-languages/
15th Aug 2020, 6:45 PM
SOUMYA
SOUMYA - avatar
+ 2
Control structures are all the statements that manipulate the flow of execution in your program, the most basic ones are conditions (if, else) and loops (for, while, break, continue). You will find the same in most programming languages.
15th Aug 2020, 6:30 PM
Tibor Santa
Tibor Santa - avatar
+ 2
You can make a condition for the execution of your code or execute until reached some conditions .Controls help a lot to test owr code or to check if a validate value is true or false or execute for a wanted time so make limits to the running thread with flow control.
15th Aug 2020, 6:37 PM
HBhZ_C
HBhZ_C - avatar