I understand a few things about Lvalue but I don't understand how the below code gives an error:
#include<stdio.h>
void foo(int *);
int main()
{
int i=10;
foo((&i)++);
}
void foo(int *p)
{
printf("%d",*p);
}
6:13: error: lvalue required as increment operand foo((&i)++); ^