Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CPP

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;
}
Source by www.cplusplus.com #
 
PREVIOUS NEXT
Tagged: #result #meaning
ADD COMMENT
Topic
Name
3+4 =