Home Forums C Programming Lvalue and Rvalue Re: Re: Lvalue and Rvalue

#3650
GWILouisaxwzkla
Participant

For an R-value violation you could do this:


void func ( int i );

int main()
{
int i = func ( 3 );

}

pretty sure that would constitute a R-value violation…….