GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Processing
  • Download
  • Reference
  • Environment
  • Libraries
  • Tools
  • Wiki
  • Tutorials
  • Examples
  • Books
  • Forum
  • Overview
  • People
  • Privacy

This view

  • Original page
  • New address

GeezerVison is showing processing.org — ++ (increment) / Reference

Reference+
Documentation→Reference→Math→Operators

Name

++ (increment)

Description

Increases the value of an integer variable by 1. Equivalent to the operation i = i + 1. If the value of the variable i is five, then the expression i++ increases the value of i to 6.

Examples

  • int a = 1;   // Sets 'a' to 1 
    int b = a++; // Sets 'b' to 1, then increments 'a' to 2
    int c = a;   // Sets 'c' to 2 
    

Syntax

  • value++

Parameters

  • valueint

Related

  • addition
  • addassign
  • decrement
Creative Commons License

This work is licensed under a Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International License.

You are visitor 01402503 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.