Describe about storage allocation and scope of global, extern, static, local and register variables?
No Answer is Posted For this Question
Be the First to Post Answer
What is the difference between global variables and local variable
Differentiate between a template class and class template in c++?
How a new operator differs from the operator new?
What do you mean by storage classes?
Why main function is special in c++?
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.
Memory is not a constraint. In a single iteration(NOTE: you can't go back), how will you find out the 10th last node/item in a linked list.
16 Answers BNB, FDS, Goldman Sachs, Nagarro,
What is the disadvantage of using a macro?
Can I learn c++ without c?
What is a NULL Macro? What is the difference between a NULL Pointer and a NULL Macro?
What is rtti in c++?
If a round rectangle has straight edges and rounded corners, your roundrect class inherits both from rectangle and from circle, and they in turn both inherit from shape, how many shapes are created when you create a roundrect?