In which memory a class gets stored(in heap /in stack)?
And why??
Answer Posted / ravi.g
Usually class will get stored when the object/s are created.
Class will get sored in stack segment when the object is
created inside the functions.
When objects are created globally they will get stored in
the data segment.
Is This Answer Correct ? | 2 Yes | 3 No |
Post New Answer View All Answers
What is searching? Explain linear and binary search.
Write a program using display() function which takes two arguments.
What it is and how it might be called (2 methods).
Define stacks. Provide an example where they are useful.
What is a stack c++?
What are the advantages of pointers?
When can I use a forward declaration?
Write a program using GUI concept for the scheduling algorithms in Operating system like SJF,FCFS etc..
What is auto used for in c++?
Can c++ be faster than c?
Why was c++ made?
Is it possible for the objects to read and write themselves?
Can a constructor return a value?
What are dynamic type checking?
Can you pass an array to a function in c++?