What is the difference between stack and heap memory?
Answer / nashiinformaticssolutions
o Stack: Memory is allocated and deallocated automatically.
o Heap: Memory is allocated dynamically using new or malloc.
Is This Answer Correct ? | 0 Yes | 0 No |
when can we use virtual destructor?
7 Answers HCL, HP, Virage Logic,
What is constructor in C++?
What are the popular tools used to detect memory leaks in c++
Give a very good method to count the number of ones in a "n" (e.g. 32) bit number.
Which function should be used to free the memory allocated by calloc()?
What is the use of 'this' pointer?
What will the line of code below print out and why?
"How will you merge these two arrays? Write the program Array: A 1 18 22 43 Array: B 3 4 6 20 34 46 55 Output Array: C 1 3 4 6 18 20 22 34 43 46 55"
9 Answers College School Exams Tests, HCL,
What data structure is fastest, on average, for retrieving data: a) Binary Tree b) Hash Table c) Stack
Why pure virtual functions are used if they don't have implementation / When does a pure virtual function become useful?
whats the size of class EXP on 32 bit processor? class EXP { char c1; char c2; int i1; int i2; char *ptr; static int mem; };
What is null pointer and void pointer and what is their use?