Answers for "what is ^ in cpp"

C++
2

? in cpp

e = ((a < d) ? (a++) : (a = d))
  //advance if else condition
Posted by: Guest on February-02-2021
4

c++ .* operator

The .* operator is used to dereference pointers to class members.
Posted by: Guest on September-03-2020
0

What is a ~ in c++

class Entity{
  public: 
  	~Destructor();
  	//This is a destructor, which destroys instances and can free up memory.
};

//Source for answer:
// https://stackoverflow.com/questions/1395506/in-c-what-does-a-tilde-before-a-function-name-signify

//Other Sources:
// https://www.ibm.com/support/knowledgecenter/en/ssw_ibm_i_74/rzarg/cplr380.htm
Posted by: Guest on October-19-2020
-2

x += c++

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

Browse Popular Code Answers by Language