L-Value: In compilation, l-values are those variables which can be put on the left side of an expression. Example as follows:

int a, b;
a = b;
In the above assignment statement, variable 'a' is the l-value.

Structures are l-values whereas arrays are not l-values.

Structure Example:
struct node
  int value;
  struct node * next;
struct node n1, n2;
n1 = n2;
Array Example:
char name1[10];
char name2[10];
name1 = name2; /*Gives compilation error*/

About our authors: Team EQA

You have viewed 1 page out of 252. Your C learning is 0.00% complete. Login to check your learning progress.