Prepare for your Next Interview
|
Welcome to the Geeks Talk forums. You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community you will have access to post topics, communicate privately with other members (PM), respond to polls, upload content and access many other special features. Registration is fast, simple and absolutely free so please, join our community today! If you have any problems with the registration process or your account login, please contact contact us. |
This is a discussion on inlines within the Java forums, part of the Software Development category; can Anyone plz explain about Inline functions??...
|
|||||||
|
|||
|
Re: inlines
Hi,
For u r kind information , there is no inline function concept in java. If u want to know inline function in c++, here is the answer. Inline functions are the functions which will be replaced by the code of the function itself during execution. Eg: #include <iostream.h> inline int average(int p, int q) { return (p + q) / 2; } int main() { int result = average(12, 14); cout << "The average of number 12, 14 is " << result << "\n"; return 0; } Hope it helps to clear u doubt. Regards, Rijus. |
| The Following User Says Thank You to rijus For This Useful Post: | ||
![]() |
|
| Thread Tools | |
| Display Modes | |
|
|