When one must use recursion function? Mention what happens when recursion functions are declared inline?
637I 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.
597Post New C++ General Questions
Does c++ cost money?
Which programming language should I learn first?
What you know about structures in C++?
What is the difference between an external iterator and an internal iterator?
What do you mean by translation unit in c++?
program explaining feautures of c++
When can I use a forward declaration?
What is a constant reference?
A company pays its salespeople on a commission basis. The salespeople receive $200 per week plus 9 percent of their gross sales for that week. For example, a saleperson who sells $5000 worth of merchandise in a week receives $200 plus 9 percent of $5000, or a total of $650. You have been supplied with a list of items sold by each salesperson. The values of these items are as follows: Item Value A 239.99 B 129.75 C 99.95 D 350.89 Write a program that inputs one salesperson's items sold in a week (how many of item A? of item B? etc.) and calculates and displays that salesperson's earnings for that week.
Define pre-condition and post-condition to a member function in c++?
Which ide is best for c++?
What is encapsulation in C++? Give an example.
What is runtime polymorphism in c++?
How come you find out if a linked-list is a cycle or not?
How we can differentiate between a pre and post increment operators during overloading?