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 |
What are different types of loops in c++?
class Foo { public: Foo(int i) { } }; class Bar : virtual Foo { public: Bar() { } }; Bar b; Referring to the above code, when the object 'b' is defined, a compiler error will occur. What action fixes the compiler error? a) Adding a virtual destructor to the class Bar b) Adding a constructor to Bar which takes an int parameter c) Adding "Foo()" to the Bar constructor d) Adding a copy constructor to the class Foo e) Adding "Foo(0)" to the Bar::Bar initializer list
What C++ libraries are you proficient with?
What is #include iostream in c++?
what is difference between internet and Internet?
12 Answers College School Exams Tests, Microsoft, MIT, TCS,
what Is DCS ? what i will get benefit when i did?
Write a program to swap 2 chars without using a third varable? char *s = "A"; char *p = "B";
What is Memory Alignment?
Write about all the implicit member functions of a class?
Explain data encapsulation?
Implement strncpy
What is pointer -to-members in C++? Give their syntax?