Answers for "result += a +b in c++ meaning"

C++
0

result += a +b in c++ meaning

// compound assignment operators
#include <iostream>
using namespace std;

int main ()
{
  int a, b=3;
  a = b;
  a+=2;             // equivalent to a=a+2
  cout << a;
}
Posted by: Guest on May-15-2021

Browse Popular Code Answers by Language