LValue and RValue
int b = 10;#include <iostream>
int getValue() {
return 40;
}
int main(int argc, char const *argv[])
{
int b = 10;
// getValue() = 30; // Not possible
std::cout << "a: " << a << ", b: " << b << std::endl;
return 0;
}Last updated