> For the complete documentation index, see [llms.txt](https://lifeexe-art.gitbook.io/game-engine.-hardcore-series/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://lifeexe-art.gitbook.io/game-engine.-hardcore-series/lectures/03.-c++-build-process.-compilation-theory.-assembly/code.md).

# Code

```cpp
int main()
{
    float health = 100.f;
    const int heal = 13;
    health = heal + health * 0.5f;
    return 0;
}
```

```cpp
int main()
{
    const int a = 17;
    const int b = 19;
    const int result = a + b;
    return result;
}
```

```cpp
int max(int a, int b)
{
    return a > b ? a: b;
}

int main()
{ 
    const int result = max(10, 23);
    return result;
}
```

```cpp
extern int a;
extern int b;

int max(int a, int b)
{
    return a > b ? a: b;
}

int main()
{ 
    const int result = max(a, b);
    return result;
}
```
