---
title: "What do you mean by inline function?"  
description: "What do you mean by inline function?"  
author: "Anonymous User"  
published: 2015-01-15  
updated: 2020-09-16  
canonical: https://www.mindstick.com/interview/2269/what-do-you-mean-by-inline-function  
category: ".net"  
tags: ["c#"]  
reading_time: 2 minutes  

---

# What do you mean by inline function?

## Inline function

An inline function is a combination of macro & function. At the time of declaration or definition, function name is preceded by word inline.When inline functions are used, the overhead of function call is eliminated. Instead, the executable statements of the function are copied at the place of each function call. This is done by the compiler.\
The idea behind inline functions is to insert the code of a called function at the point where the function is called. If done carefully, this can improve the application's performance in exchange for increased compile time and possibly (but not always) an increase in the size of the generated binary executables.\

## Answers

### Answer by Anonymous User

## Inline function

An inline function is a combination of macro & function. At the time of declaration or definition, function name is preceded by word inline.When inline functions are used, the overhead of function call is eliminated. Instead, the executable statements of the function are copied at the place of each function call. This is done by the compiler.\
The idea behind inline functions is to insert the code of a called function at the point where the function is called. If done carefully, this can improve the application's performance in exchange for increased compile time and possibly (but not always) an increase in the size of the generated binary executables.\


---

Original Source: https://www.mindstick.com/interview/2269/what-do-you-mean-by-inline-function

Copyright © MindStick Software Pvt. Ltd. This Markdown version is provided for developers, AI systems, and offline reading.
