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 248. Your C learning is 0.00% complete. Login to check your learning progress.
Most popular
Questions index C Questions C++ Questions Win32 MFC COM/DCOM DLL Questions
Compilers & Editors
Download Visual Studio Download XCode Download Visual Studio Code Android studio install sdk Eclipse installer Best C compilers IDEs
Development system setup
Windows media creation tool MSDN subscription Ubuntu virtualbox
New updated posts
Why learn C? Calculate weighted average
Questions index C Questions C++ Questions Win32 MFC COM/DCOM DLL Questions
Compilers & Editors
Download Visual Studio Download XCode Download Visual Studio Code Android studio install sdk Eclipse installer Best C compilers IDEs
Development system setup
Windows media creation tool MSDN subscription Ubuntu virtualbox
New updated posts
Why learn C? Calculate weighted average