In which memory a class gets stored(in heap /in stack)?
And why??
Answer Posted / pravin
The stack is a place in the computer memory where all the variables that are declared and initialized before runtime are stored. The heap is the section of computer memory where all the variables created or initialized at runtime are stored.
Hence,classes will be stored in heap memory.
Is This Answer Correct ? | 6 Yes | 3 No |
Post New Answer View All Answers
How would you use the functions randomize() and random()?
Can notepad ++ run c++?
Can you be bale to identify between straight- through and cross- over cable wiring? And in what case do you use straight- through and cross-over?
What are smart pointers?
What is binary search in c++?
What is the first name of c++?
How can you quickly find the number of elements stored in a dynamic array?
What is c++ prototype?
What is c++ similar to?
What is const pointer and const reference?
What are dynamic type checking?
What is namespace std; and what is consists of?
How to declare a function pointer?
What is oops in c++?
Which function should be used to free the memory allocated by calloc()?