The following code doesn't run. Can I say increment/decrement operators won't work on functions with return type int?
int main()
{
char x[] = {"test"};
int size = strlen(x); //works :)
int size2 = --strlen(x); //doesn't work
return 0;
}
Error is:
error: lvalue required as decrement operand
9 | int size2 = --strlen(x); //doesn't work
| ^~