in Programming edited by
277 views
0 votes
0 votes

i have not read lvalue is it there in syllabus and how to do this

in Programming edited by
277 views

6 Comments

c?
0
0

They said "it can be a target" so anything except a constant can be a target.

So option C?

0
0

L-value- >the location of the memory (address ) where the expression is stored is called l-value .It can be appeared left side as well as right hand side of assignment operator .

ref.-https://www.geeksforgeeks.org/lvalue-and-rvalue-in-c-language/

c will be answer

 

1
1
@arvin please explain they said left hand side of assignment means there is only b how a,c,d,e are also there
0
0
they have already defined l value as target of an assignment.

so it can be only those variables that can store a value... or can be considered as lhs..

int f() is a function which can never be used to store a value and will always be at rhs so it will not be considered.
1
1
edited by
but array name can never be an lvalue, because array name itself is a constant.

how it can be on the left side of an assignment?
0
0

Please log in or register to answer this question.