C# - Increment statement: ++

It is a mathematical operation that is used to increase the number by one.

++

Description

++ var ;

Input

Examples

C#

Increment statement the possible of use:
i=0;
while (i<10) ++i;
x =0;
while (i<20)
{
 i= i+2;
 if (i==16)
 {
    continue;
 }
 x++; 
}

++

Description

var ++ ;

Input

Examples

C#

Increment statement the possible of use:
i=0;
while (i<10) ++i;
x =0;
while (i<20)
{
 i= i+2;
 if (i==16)
 {
    continue;
 }
 x++; 
}

C#

Other pieces of example codes:
if ( y < 100 )  
   x++;
if (y < 100)  
  x++;
while ( y <= 32 )  
   y++;
i++;
i++;
x++;
Increment statement in another programming language:
Differences to:
Languages: en hu cz sk