Explain what is the heap?



Explain what is the heap?..

Answer / Khajan Singh Chauhan

In C, the heap is a region of memory used for dynamic memory allocation, where you can dynamically allocate and deallocate memory during runtime using functions like `malloc()`, `calloc()`, `realloc()`, and `free()`. The heap is not bounded by any size limitations unlike the stack.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More C Interview Questions

What is n in c?

1 Answers  


What is the benefit of using #define to declare a constant?

1 Answers  


how to set Nth bit of a variable?

1 Answers  


What is alloca() and why is its use discouraged?

1 Answers  


Why is structure padding done in c?

1 Answers  


Is there any restriction in how many arguments printf or scanf function can take? in which file in my c++ compiler i can see the code for implementation of these two functions??

4 Answers  


 write a program that will open the file, count the number of occurences of each word in the the complete works of shakespeare.  You will then tabulate this information in another file.

1 Answers  


What is the difference between struct and typedef struct in c?

1 Answers  


What are the types of macro formats?

1 Answers  


Explain indirection?

1 Answers  


char ch=10;printf("%d",ch);what is the output

14 Answers   Accenture,


How can I remove the leading spaces from a string?

1 Answers  


Categories