answersLogoWhite

0

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;

User Avatar

Wiki User

16y ago

What else can I help you with?

Continue Learning about Engineering

What is the similarity between 'if' statement ans 'switch' statement?

A Switch statement can be considered as a series of if. else if. else statements. whatever condition is satisfied, the code block would get executed. if (cond 1) { } else if (cond 2) { } else if (cond 3) { } ...... } else if (cond N) { } else { } switch { case 1: .... case 2: .... .... case N: ... default: ... } Difference: In the if else blocks, if one condition is satisfied, all other blocks are ignored In Switch blocks, unless you have break statements inside each condition block, the subsequent blocks would not be ignored.


Difference between plummer and pillow block?

There is really no difference between the two. Although it seems common practice that the plummer blocks are split, with bolt on caps.


What is the difference between isolator and circulator?

Isolator is something which blocks current or heat. Where as Circulator is something through which heat and electricity can pass.


What is the difference between structure and pointer?

A structure is a collection of primitives or other structures. A pointer is a memory address. Comparison of the two is like comparing bowling balls to cinder blocks. You can say that a structure defines the layout of the data, while a pointer points to data that is a particular structure.


What is the function of a statements?

Statements serve to convey information, assert facts, or express opinions in both written and spoken forms. They are fundamental building blocks of communication, allowing individuals to share ideas, provide clarity, and facilitate understanding. In programming, statements execute specific actions or commands within a code, guiding the flow of operations. Overall, statements play a crucial role in articulating thoughts and executing processes across various contexts.

Related Questions

What is the similarity between 'if' statement ans 'switch' statement?

A Switch statement can be considered as a series of if. else if. else statements. whatever condition is satisfied, the code block would get executed. if (cond 1) { } else if (cond 2) { } else if (cond 3) { } ...... } else if (cond N) { } else { } switch { case 1: .... case 2: .... .... case N: ... default: ... } Difference: In the if else blocks, if one condition is satisfied, all other blocks are ignored In Switch blocks, unless you have break statements inside each condition block, the subsequent blocks would not be ignored.


What is the difference between a fullback and halfback?

one blocks, one runs


Difference between plummer and pillow block?

There is really no difference between the two. Although it seems common practice that the plummer blocks are split, with bolt on caps.


What is the difference between a solar eclipse and a lunar eclispe?

A solar eclipse is when the moon blocks the sun's light from Earth. A Lunar eclipse is when the Earth blocks the sun's light from the moon.


What is the difference between the solar eclisps and lunar eclisps?

A solar eclipse is when the moon blocks the sun's light from Earth. A Lunar eclipse is when the Earth blocks the sun's light from the moon.


What is the difference between bar graph and block graph?

Bar graphs are when it goes up and blocks is jut l


What is the difference between strata and blocks in statistics?

Blocking is more for experimental design while strata is for survey sampling.


What is the difference between a sticky piston and a piston in minecraft?

In all editions of Minecraft, pistons can push blocks, however, sticky pistons are able to push blocks too, but pull them back as well.


What is the difference between isolator and circulator?

Isolator is something which blocks current or heat. Where as Circulator is something through which heat and electricity can pass.


What is the difference between body buildiing blocks and body building food?

proteins, carbohydrate, fats and lipids are body building blocks and essential elements while food containing these blocks like egg,milk,meat,vegetables are body building food.


What is the difference between practical math and written math?

Practical is when you are doing an activity (hands on) like counting blocks and written is when you are writing something.


What is the difference between transitoin element and p and s blocks in a periodic table?

Transition metals form ions with incomplete d orbitals.