Question
C++ Programming Questions 23-25
QUESTION 23 What is the major disadvantage of recursive functions? TTT Arial 3 (12pt) „T !!! - 111 Path: P QUESTION 24 What i
0 0
Add a comment Improve this question Transcribed image text
Answer #1

Question 23:

The major disadvantage of recursion is it adds a lot of space complexity. In a recursive program each function call will remain in the stack untill the base case is reached. Because of this a recursive program has a greater space requirement(than an iterative program). Due to this recursion consumes a big amount of stack space. This might not be a sensible option when the programs are small.

Question 24:

area is a variable that stores an integer value. And only an integer pointer can point to the address of the memory location in which an integer is stored. ptr being a pointer to a double type cannot be used to point to an integer type. It raises an error.

Question 25:

An ADT is a special kind of data type which are formed from the primitive data types and whose behaviour is defined by a set of operations. These operations can be used by the user to perform a wide range of tasks but the mechanism or the logic behind these operations are hidden from the user.

Please give a like

Add a comment
Know the answer?
Add Answer to:
C++ Programming Questions 23-25 QUESTION 23 What is the major disadvantage of recursive functions? TTT Arial...
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for? Ask your own homework help question. Our experts will answer your question WITHIN MINUTES for Free.
Similar Homework Help Questions
ADVERTISEMENT
Free Homework Help App
Download From Google Play
Scan Your Homework
to Get Instant Free Answers
Need Online Homework Help?
Ask a Question
Get Answers For Free
Most questions answered within 3 hours.
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT