answersLogoWhite

0


Best Answer

Yes. However a control structure need not be complex. A control structure is simply a language mechanism that allows us to more easily express an otherwise procedural concept. For instance, consider the following procedural loop:

int x=0;

again:

if (!(x<10)) goto end;

// lots of statements...

++x;

goto again:

end:

This loop is much more easily expressed using a control structure:

for (int x=0; x<10; ++x) {

// lots of statements...

}

The resulting machine code will be exactly the same, so the level of complexity has not changed in any way. However, the latter is arguably much more readable because the loop conditions are all stated up front where they are easily seen and the body of the loop is contained within the loop statement itself.

User Avatar

Wiki User

7y ago
This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: Do complex control structures improve the readability of programs?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Related questions

Where do you get loop the loop straws?

C, for loops, while loops, and do while loops are control structures forFor example, the following programs are functionally identical: While loop


What is Control structures in java?

Control structures in java are nothing but like how u structure your program based on conditions like if-else using switch-case using for loops all together conditions applying things are called control structures


What are two ways in which control structures can be combined?

Control Structures can be combined by a process called Nesting. Example: if (x==true) if(y==true) { Foo() }


What are the two ways in which control structures can be combined?

Control Structures change the flow of a program.Control Structures can be combined using what is known as Nesting.In Nesting a control structure is put within another Control StructureExampleIf (x==y ) If (y==z) then do somethingWhile(X is Not 0) While ( Y is Not 100 ) then do something.


What structures produce hormones?

what structures produces hormmones


What structures control the size of the opening of leaves?

xylem


What Threadlike structures that control a cell's activities?

The nucleus


Threadlike structures that control a cells activities are?

Nucleus


Which structures control the flow of blood through the heart and What governs the functioning of these structures?

Valves and blood vessels control the flow of blood through the heart. The aorta governs the functioning of these structures by being the main artery in the cardiac system.


What has the author A Parlos written?

A. Parlos has written: 'Active vibration control techniques for flexible space structures' -- subject(s): Control systems design, Vibration damping, Large space structures, Flexible spacecraft, Spacecraft control, Active control


Artificial levees and dams are structures used to control what?

Flooding


What structures in chromosomes control inherited characteristics?

Genes or locus.