Answers for "increment c++"

C++
2

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;
}
Posted by: Guest on December-28-2020

Browse Popular Code Answers by Language