> For the complete documentation index, see [llms.txt](https://abhyas-kanaujia.gitbook.io/lb-dsa-notes-and-homework-abhyas/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://abhyas-kanaujia.gitbook.io/lb-dsa-notes-and-homework-abhyas/18-static-and-dynamic-allocation/homework/how-to-know-if-inline-worked-or-not.md).

# How to know if inline worked or not?

`inlin`ing of a funciton happens only on compile time so the only way know if the funcion has been inlined is to compile the souce code down to assembly code.&#x20;

We can compare the outpt assembly code with and wihtout the inline.&#x20;

<details>

<summary>References</summary>

* Stack overflow: How will i know whether inline function is actually replaced at the place where it is called or not? Retrieved 24 May 2022, from <https://stackoverflow.com/a/10631372?stw=2>

</details>
