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 |
What is n in c?
What is the benefit of using #define to declare a constant?
how to set Nth bit of a variable?
What is alloca() and why is its use discouraged?
Why is structure padding done in c?
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??
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.
What is the difference between struct and typedef struct in c?
What are the types of macro formats?
Explain indirection?
char ch=10;printf("%d",ch);what is the output
How can I remove the leading spaces from a string?