Home TechnologyProgrammingC++ Subscribe to RSS

What Is The Difference Between Inline Function And Preprocessor?

Answer Question

1 Answer - Sort by: Date | Rating

    Preprocessor is the phase which comes before compiling(Pre-before).This phase takes care of macro substitution,etc.Inline function is the expansion of function calls there itself by the compiler to prevent function overhead for small functions(by using the keyword inline(c++) the function is made inline).However,the compiler decides whether the functions is expanded or not based on certain conditions implemented in the compilers.
    0 0

    Nlgopi  

    answered 7 months ago

      More

         
         

        Ask a Question via Twitter

        Send a question to @askblurtit and we will publish it online and send you a reply everytime you receive an answer.

        Blurtit Store

        Get T-shirts, hoodies, caps and more at the Blurtit store

        Blurtit International