what is inline function?

Answer Posted / vishnu

Inline fuction is one which has one line of defination.
If function definiation is more than two lines of
defination it will be treated as normal fuction.
since it will be replaced at compile time it is good to use
inline function if your code is of one line

Is This Answer Correct ?    4 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What's the right way to use errno?

628


Which is the best website to learn c programming?

585


Explain how do you convert strings to numbers in c?

598


Why ca not I do something like this?

591


Write a code of a general series where the next element is the sum of last k terms.

598






What is the purpose of type declarations?

683


how to print the character with maximum occurence and print that number of occurence too in a string given ?

2039


What is string function c?

572


Wt are the Buses in C Language

2753


How would you use the functions fseek(), freed(), fwrite() and ftell()?

707


What is the difference between array and structure in c?

573


Explain what is the benefit of using #define to declare a constant?

614


How can I trap or ignore keyboard interrupts like control-c?

620


What is the default value of local and global variables in c?

561


What are the 5 types of inheritance in c ++?

589