answersLogoWhite

0


Best Answer

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

14y ago
This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: What is the difference between blocks and compound statements?
Write your answer...
Submit
Still have questions?
magnify glass
imp
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 difference between plc and fpga?

fpga and plc are two completely different things. FPGA( field programmable gate arrays) are building blocks of electronic sysytem where as plc are systems. Comparing these two is like comparing engine with car.

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


What is a compound that blocks the growth and reproduction of bacteria?

An antibiotic is a compound that blocks the growth and reproduction of bacteria.An antibiotic.


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 strata and blocks in statistics?

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


What is the difference between bar graph and block graph?

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


What are the 3 building blocks of matter?

elements, mixture, and compound


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.