Explain Memory Allocation in C/C++ ?



Explain Memory Allocation in C/C++ ?..

Answer / Saroj Kumar Jha

Memory allocation in C and C++ is the process of reserving storage for variables in the computer's memory. This is usually done using dynamic memory allocation functions like malloc(), calloc(), realloc(), and free(). Static and automatic memory allocation also occur when variables are declared.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More C++ General Interview Questions

What is the difference between passing by reference and passing a reference?

1 Answers  


Can I create my own functions in c++?

1 Answers  


Explain Text Manipulation Routines?

1 Answers  


What is the arrow operator in c++?

1 Answers  


What is the difference between c++ and turbo c++?

1 Answers  


Write a program which employs Recursion

1 Answers  


Briefly describe a B+ tree. What is bulk loading in it?

1 Answers   Wipro,


why all c++ program must have default constructor?

6 Answers   IBM,


Explain class invariant.

1 Answers  


Can we run c program in turbo c++?

1 Answers  


What is a null object in c++?

1 Answers  


Describe the setting up of my member functions to avoid overriding by the derived class?

1 Answers  


Categories