Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

Can inline functions have a recursion? Give the reason?

Answer Posted / sandeep mannarakkal

Inline is a request to the compiler , i.e it may get rejected for the following reasons,
1) If there is recursion (recursion have stack over stack, but inline don't have stack)
2) If static variable is available inside inline function
3) if function definition and implementation are available at different files
4) If there is a function pointer to inline function

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What does count ++ do in c++?

1254


What do the keywords volatile and mean mutable?

1093


What data structure is fastest, on average, for retrieving data: a) Binary Tree b) Hash Table c) Stack

1126


I was a c++ code and was asked to find out the bug in that. The bug was that he declared an object locally in a function and tried to return the pointer to that object. Since the object is local to the function, it no more exists after returning from the function. The pointer, therefore, is invalid outside.

1190


What is size_type?

1115


What is a pointer how and when is it used?

1144


Can I run c program in turbo c++?

1081


Can java be faster than c++?

1203


Explain selection sorting?

1130


What is the use of main function in c++?

1018


How would you implement a substr() function that extracts a sub string from a given string?

1105


What does override mean in c++?

1118


When the constructor of a base class calls a virtual function, why doesn't the override function of the derived class gets called?

1151


What is difference between rand () and srand ()?

1149


Explain the static member function.

1226