[Updated] Goldman Sachs Aptitude Test Questions and Answers
Practice List of TCS Digital Coding Questions !!!
Take 50+ FREE!! Online Data Interpretation Mock test to crack any Exams.

C Programming :: Basic Concepts - Discussion

Home > C Programming > Basic Concepts > MCQs Questions Discussion

37 / 90

Choose the correct option.

Assignment operator targets to _____

Ar-value

Bl-value

Cboth

DNone

Answer: Option (Login/Signup)

Show Explanation

For example-

a=5;    //assigns '5' to 'a'.

On the other hand, 5=a;    //error.

Very often in C, we use the terminology of l-value in error messages. It basically refers to the operands present on the left-hand side of the assignment operator. It can be a variable or a pointer, but should not be a constant.

Hence, from the above theory, we can conclude for sure that assignment operator targets to L-value.

Asked In :: Wipro

Post Your Answer Here:     

Reply    
Rate This: +0 -0
    Report


Report Error

Please Login First Click Here