我理解Lvalue的一些事情,但我不明白下面的代码是如何产生错误的:
#include<stdio.h> void foo(int *); int main() { int i=10; foo((&i)++); } void foo(int *p) { printf("%d",*p); }
6:13:错误:左值作为增量操作数foo((&i)++); ^
c reference lvalue
c ×1
lvalue ×1
reference ×1