? in cpp
e = ((a < d) ? (a++) : (a = d))
//advance if else condition
? in cpp
e = ((a < d) ? (a++) : (a = d))
//advance if else condition
operand-- c++
++x;
x+=1;
x=x+1;
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
x += c++
int main ()
{
int a, b=3;
a = b;
a+=2; // equivalent to a=a+2
cout << a;
}
Copyright © 2021 Codeinu
Forgot your account's password or having trouble logging into your Account? Don't worry, we'll help you to get back your account. Enter your email address and we'll send you a recovery link to reset your password. If you are experiencing problems resetting your password contact us