Which one is better- macro or function?
No Answer is Posted For this Question
Be the First to Post Answer
How can we access protected and private members of a class?
Can a constructor be private?
What is the difference between the parameter to a template and the parameter to a function?
What is const in c++?
What is #include iomanip?
Is c++ free?
What is data types c++?
How to implement flags?
Why we use #include iostream in c++?
How can you create a virtual copy constructor?
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.
What are c++ stream classes?