# LValue and RValue

Look at the below code:

```cpp
int b = 10;
```

Here, `b` is LValue and `10` is RValue. Take another example:

```cpp
#include <iostream>

int getValue() {
    return 40;
}

int main(int argc, char const *argv[])
{
    int b = 10;
    
    // getValue() = 30; // Not possible

    std::cout << "a: " << a << ", b: " << b << std::endl;

    return 0;
}
```

Here, we create a function, that will


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://notes.tejpratapsingh.com/_/cpp/code/lvalue-and-rvalue.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
