Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CPP

increment c++

int main(){
  int i = 0;
  cout << i << endl; //Outputs 0
  i++; //Now i is 0 + 1
  cout << i << endl; // Outputs 1
  return 0;
}
 
PREVIOUS NEXT
Tagged: #increment
ADD COMMENT
Topic
Name
5+7 =