Block Statements - C Statement

C examples for Statement:Statement Introduction

Introduction

Block statements groups related statements to one unit.

A block statement is begun with a { and terminated by its matching }.

Demo Code

#include <stdio.h>

int main(void)
{

   int i;/*from ww  w .j  ava  2  s . c om*/

   { /* a free-standing block statement */
      i = 120;
      printf("%d", i);
   }

   return 0;
}

Result


Related Tutorials