Home
Archaeology
Astronomy
Biology
Books
Business
Chemistry
Coins
Computers
Conservation
Cooking
Earth Science
Farming
Economics
Finance
Games
Geography
Health Science
History by Date
Hobbies
Law
Mathematics
Medicine
Military Technology
Movies
Music
People
Pharmacology
Philosophy
Physics
Psychology
Religion
Science History
Technology
Sports
Television
Video
Visual Art
Privacy
Contact Us



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 {}. 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;
}

Copyright 2004. All rights reserved.