answersLogoWhite

0


Best Answer

I think this is Branching

User Avatar

Wiki User

11y ago
This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: What primitive control statement is used to build more complicated control statements in languages that lack them?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Continue Learning about Engineering

What is the difference between blocks and compound statements?

A compound statement is a single statement which combines the work of multiple individual statements. A block is a collection of individual statements. Block: ++i; x = i; Compound statement: x = ++i;


What are the disadvantages of switch statement in C-language?

In some languages and programming environments, a case or switch statement is considered easier to read and maintain than an equivalent series of if-else statements, because it is more concise. However, when implemented with fall-through, switch statements are a frequent source of bugs among programmers new to the switch statement.


Structure of If-Then statement?

if (condition) statement1 [else statement2] example: if (i==j); else if (j==k) printf ("i!=j, j==k\n); else printf ("i!=j, j!=k\n); here statement1 is an empty-statement, statement2 is another if-statement There are three forms of statements IF-THEN IF-THEN-ELSE IF-THEN-ELSIF Sequence of statements is executed only if the condition evaluates to TRUE If condition evaluates to FALSE or NULL, it does nothing In either case control passes to next statement after the IF-THEN structure IF THEN statements; END IF; Sequence of statements in the ELSE clause is executed only if the condition evaluates to FALSE or NULL IF THEN statements; ELSE statements; END IF;


What is java compound statement?

A compound statement is a group of statements enclosed in braces, i.e curly brackets. A compound statement is a group of statements enclosed in braces, i.e curly brackets.


What statement executes a group of statements only if a certain condition is true?

The if statement.

Related questions

Why use process statement in vhdl?

Almost all programming languages are sequential in nature. But VHDL is a concurrent language. In an architecture for an entity, all statements are concurrent. So where do sequential statements exist in VHDL?. There is a statement called the process statement that contains only sequential statements. The process statement is itself a concurrent statement. A process statement can exist in an architecture and define regions in the architecture where all statements are sequential. A process statement has a declaration section and a statement part. In the declaration section, types, variables, constants, subprograms, and so on can be declared. The statement part contains only sequential statements. Sequential statements consist of CASE statements, IF THEN ELSE statements, LOOP statements, and so on.


Why we can't use semicolon at the end of if ststement?

The computer language has a grammar for the syntax. Not all computer languages using ; to end a statement. The if-statements DO end with an ; (except when a <compound statement>) in C#, C, PHP, and Java (and many others). In fact, most of <statement> end with ; in those languages, and <if-statement> is just one of the derived <statement>. However, for statements like: if (1 == 2) {} else {}, the {} is a <compound statement> which does not end with a ; syntactically.


What is the plural for statement?

The plural of "statement" is "statements."


What are iterative statements?

An iterative statement is a looping statement, such as a 'for', 'while', or 'do-while' statement. They cause statements to be repeated (iterated) multiple times.


What is the difference between blocks and compound statements?

A compound statement is a single statement which combines the work of multiple individual statements. A block is a collection of individual statements. Block: ++i; x = i; Compound statement: x = ++i;


What are the disadvantages of switch statement in C-language?

In some languages and programming environments, a case or switch statement is considered easier to read and maintain than an equivalent series of if-else statements, because it is more concise. However, when implemented with fall-through, switch statements are a frequent source of bugs among programmers new to the switch statement.


What items might be in the financial statements but not actually on the balance sheet income statement statement of retained earnings or statement of cash flows?

Since the notes to the financial statements form part of the financial statements and are a component of financial statements, certain disclosures found in the notes may not be found in the balance sheet, income statement, statement of retained earnings or statement of cash flows.


Is income statement same as financial statement?

no. income statement is a only a statement in financial statements.


What is difference between control statements and looping statements in c language?

differance between control statement and looping statement?


What is Positive statement?

A position statement is an opinion.


Structure of If-Then statement?

if (condition) statement1 [else statement2] example: if (i==j); else if (j==k) printf ("i!=j, j==k\n); else printf ("i!=j, j!=k\n); here statement1 is an empty-statement, statement2 is another if-statement There are three forms of statements IF-THEN IF-THEN-ELSE IF-THEN-ELSIF Sequence of statements is executed only if the condition evaluates to TRUE If condition evaluates to FALSE or NULL, it does nothing In either case control passes to next statement after the IF-THEN structure IF THEN statements; END IF; Sequence of statements in the ELSE clause is executed only if the condition evaluates to FALSE or NULL IF THEN statements; ELSE statements; END IF;


How to write an if then statement?

It depends on the language however most use the following syntax: if (expression) then statement else statement endif Note that the "then" and "endif" keywords are not used in all languages since they are implied by the statement's structure and are normally only found in verbose languages such as BASIC. In C and C++, for instance, we have the following form: if (expression) { statement; } else { statement; } The expression must be a boolean expression; one that evaluates true or false. If the expression evaluates to a number, the expression evaluates true when the number is non-zero, otherwise it is false. When the expression is true, the first statement is executed otherwise the second statement is executed. Often we do not wish to execute anything when an expression is false, only when it is true, so the else clause is optional. if (expression) statement; In languages that use braces {} to denote structure, they are usually optional for simple statements but mandatory for compound statements. A compound statement is a group of statements that are treated as being one statement. Either statement may itself be an if statement (a nested if): if (expression) { if (expression) { statement; } else { statement; } } else { statement; } Spreading if statements over multiple lines and using whitespace indentation helps to highlight the logic and structure of the statement. It is not possible to show whitespace indentation here, but here's the same example using periods instead of whitespace: if (expression) { ...if (expression) { ......statement; ...} else { ......statement; ...} } else { ...statement; } Note the use of blank lines to separate the inner (nested) if from the outer if.