answersLogoWhite

0

Repetition.

For example the following lines do the same thing:

while (expression) statement;

LABEL: if (expression) {statement; goto LABEL; }

Or these: for (exp1; exp2; exp3) statement;

exp1; LABEL: if (exp2) {statement; exp3; goto LABEL; }

User Avatar

Wiki User

16y ago

What else can I help you with?

Related Questions

What is the difference between Do While statements and Do For statements?

A "do while....." statement is a looping instruction to a program to repeat a stage in the program while some condition is true - e.g while a variable is negative, or, while one variable is less than another. A "do for ....." statement is a looping instruction to a program to repeat a stage in the program a set number of times - e.g for steps = 1 to 10, or, for steps = 1 to (some variable).


What is the difference between branching and looping?

Branching and looping are fundamental control structures in programming. Branching allows a program to make decisions based on conditions, executing different code paths (e.g., using if-else statements). In contrast, looping enables the repeated execution of a block of code as long as a specified condition is met, utilizing structures like for, while, or do-while loops. Essentially, branching directs the flow based on conditions, while looping iterates through code.


What is the difference between a semantic error and logic error?

An error in the logic of a program means that the output of the program is faulty (eg the program tell you 2+2=5). An error in semantics in a program means that the program statements are not constructed properly and the usual result of this is that the program will not compile.


What are the various control statement in C language?

Control statements are the statements that control the flow of program execution. For eg: loops: For, While, Do-While, decision making using if-then-else or switch-case and there's goto to transfer control.


What is the difference between command and statement?

The difference between command and statement is that command are generally executable in direct mode. Commands usually perform some type of program maintenance such as editing, clearing, running, or saving programs. On the other side statements are the part of a computer program and run in compilers or indirect mode.


What is the difference between service and program?


What is the What is the difference between program and program?

Program is the US spelling.Programme is the UK spelling.


What is the difference between process and program?

nothing


What is the difference between curriculum and educational program?

Curriculum is to study. Program is to train.


Differences between audit plan and audit program?

difference between audit program audit & note book


What is the difference between a program and a procces?

the letters after pro


What are program control instructions?

Program control instructions are commands in a computer program that dictate the flow of execution. They determine the sequence in which instructions are executed, enabling features like branching, looping, and jumping to different parts of a program. Common examples include conditional statements (like if-else), loops (such as for and while), and jump instructions (like goto). These instructions are essential for implementing logic and managing the overall behavior of software applications.