What is L-value and R-value in Go?

devquora
devquora

Posted On: Feb 22, 2018

 

“L-value” known as a memory location recognizes an object. L-value may show up as either left hand or right-hand side of an assignment operator (=). L-value frequently represents as an identifier.

“R-Value” represents a data value that is stored at some address in memory. An r-value is an articulation that can’t have a value assigned to it which means r-value can show up on the right-hand side but not on the left-hand side of a task operator(=).

    Related Questions

    Please Login or Register to leave a response.

    Related Questions

    Go Programming Language

    What are Goroutines?

     Goroutines are the methods and functions that run concurrently with another methods or functions. Goroutines can be co..

    Go Programming Language

    What are channels in Go language and how can you use them?

    Go provides a mechanism, which is called channel that is utilized to share data between goroutines. When you execute a ..

    Go Programming Language

    How can you distribute tasks in Go to different machines?

    Following details is the way how we can distribute various tasks in Go to different machines: Get the Dependencies Writ..