Sobes.tech
Junior — Senior

Classification of expressions as lvalue or rvalue

livecode

Task condition

It is necessary to go through the given code fragment line by line and indicate whether each expression is an lvalue or rvalue.

int a = 1;
int b = 1;

int c = a + b;
int* bad_adr = &(a + 1);
int* adr = &a;
&a = 40;
*(p + 1) = 10;