Geeks Talk

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.

inlines

This is a discussion on inlines within the Java forums, part of the Software Development category; can Anyone plz explain about Inline functions??...

Go Back   Geeks Talk > Software Development > Java
Register Blogs FAQ Tag Cloud Calendar Mark Forums Read

Java Java related Issues and Problems

Reply

 

LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 09-24-2009
Junior Member
 
Join Date: Sep 2009
Location: Bangalore
Posts: 2
Thanks: 1
Thanked 0 Times in 0 Posts
SowmyaM is on a distinguished road
inlines

can Anyone plz explain about Inline functions??
Reply With Quote
Sponsored Links
  #2 (permalink)  
Old 09-24-2009
Expert Member
 
Join Date: May 2009
Location: Bangalore
Posts: 991
Thanks: 155
Thanked 420 Times in 201 Posts
rijus is just really nicerijus is just really nicerijus is just really nicerijus is just really nicerijus is just really nice
Re: inlines

Quote:
Originally Posted by SowmyaM View Post
can Anyone plz explain about Inline functions??
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.
Reply With Quote
The Following User Says Thank You to rijus For This Useful Post:
Reply

  Geeks Talk > Software Development > Java

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off



All times are GMT -4. The time now is 06:01 PM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.3.1
Copyright © 2009 GeekInterview.com. All Rights Reserved