Statement Block

In computer programming, a statement block is a section of code which is grouped together, much like a paragraph; such blocks consist of one, or more, statements. In C, C++, and some other languages, statement blocks are enclosed by braces {}. In Ada, Pascal, and some other languages, blocks are denoted by "begin" and "end" statements. In Python they are indicated by indentation. Unlike paragraphs, statement blocks can be nested; that is, with one block inside another.

A typical statement block

 int main() { 
   return 0; 
}

A nested statement block

 int main() { 
   int x=1;   if(x==1)   {      x++;   }   return 0; 
}

 

<< PreviousWord BrowserNext >>
heligoland trap
robert gordon
draupadi
lord's cricket ground
liu yung fu
fellow
balbo
research assistant
devet
list of people associated with the california gold rush
international cricket council
polytechnic university of new york
ji
flag of ontario
cmc
space division multiple access
coat of arms of ontario
yarmulke
clifford berry
katharine, duchess of kent
mount carmel, israel
luigino
operation sonnenblume
mushroom kingdom
tabu search
st. john ambulance
operation megaphone
aylesbury (disambiguation)
valerie chacon
return
koopa kid
boo
wario's woods
mario golf: toadstool tour
tom byron
peon
kiyoshi oka
new romney
romney
northwich
rosmarie waldrop
painswick
ross on wye
rothbury