Slideshare uses cookies to improve functionality and performance, and to provide you with relevant advertising. If you continue browsing the site, you agree to the use of cookies on this website. See our User Agreement and Privacy Policy.

Slideshare uses cookies to improve functionality and performance, and to provide you with relevant advertising. If you continue browsing the site, you agree to the use of cookies on this website. See our Privacy Policy and User Agreement for details.

2.
Overloaded Functions (page 146-148)• Overloaded functions are functions that have similar name but each performs different activities depending on the kind of data sent to the function.• The compiler uses the number of arguments, and their data types, to distinguish one function from another.• Function overloading is not allowed in C. 2/15

5.
Inline Functions (page 143-144)• Functions are good for structured programming but incur runtime overhead.• An inline function is written like a normal function but compiles into inline code which is inserted into the program wherever a function call occurs.• Inline functions are not allowed in C. 5/15

9.
Inline Functions Vs Macros• Inline functions are similar to macros declared with the #define directive. The major differences are: – Inline functions are recognized by the compiler. Macros are implemented by a simple text substitution. – Compiler performs type checking on the parameters of an inline function. Macros have unwanted side effects. 9/15

12.
Default Arguments (page 144 - 146)• A function can be called without specifying all its arguments.• The function declaration must provide default values for those arguments that are not specified.• Default arguments are not allowed in C. 12/15