5. Can inline functions have a recursion?

Answer Posted / nilay

It can have but the size of .obj (compiled) file(on
windows, .o on unix platform ) increases . so it is not
advisable to dos so.

Is This Answer Correct ?    0 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is string in c++ programming?

719


Are there any special rules about inlining?

667


What are stacks?

717


What are smart pointers?

778


what is upcasting in C++?

825






What is the difference between #import and #include in c++?

693


Why was c++ made?

750


What is switch case in c++ syntax?

712


Why use of template is better than a base class?

736


How do you declare a set in c++?

627


What is a .lib file in c++?

645


If a header file is included twice by mistake in the program, will it give any error?

648


how can i access a direct (absolute, not the offset) memory address? here is what i tried: wrote a program that ask's for an address from the user, creates a FAR pointer to that adress and shows it. then the user can increment/decrement the value in that address by pressing p(inc+) and m(dec-). NOW, i compiled that program and opened it twice (in 2 different windows) and gave twice the same address to it. now look what happen - if i change the value in one "window" of the program, it DOES NOT change in the other! even if they point to the same address in the memory! here is the code snippet: //------------------------------------------------------ #include //INCLUDE EVERY KNOWN HEADER FILE #include //FOR ANY CASE... #include #include #include main() { int far *ptr; //FAR POINTER!!! long address; char key=0; //A KEY FROM THE KEYBOARD int temp=0; clrscr(); cout<<"Enter Address:"; cin>>hex>>address; //GETS THE ADDRESS clrscr(); (long)ptr=address; temp=*ptr; //PUTS THE ADDRESS IN THE PTR cout<<"["<

1906


What is c++ similar to?

694


Why c++ is the best language?

690