How much memory is allocated by malloc(sizeof(int) * 10) on a 32-bit system where sizeof(int) = 4?
Which header file must be included to use malloc(), calloc(), and free() functions?
What is the key difference between malloc() and calloc()?
What happens when you call free() on a NULL pointer?
Which statement best describes dynamic memory allocation's advantage over static allocation?
Advertisement
What is the correct way to allocate and initialize a structure dynamically?
struct Node { int data; int next; };
Which header file must be included for dynamic memory allocation functions in C?
What is the return type of malloc()?
How much memory in bytes does calloc(10, 4) allocate?
Which header file must be included to use dynamic memory allocation functions in C?
What does free() function do in C?
What is the primary difference between malloc() and calloc()?
Which of the following correctly allocates memory for an array of 5 integers and initializes to zero?
Which function in C is used to allocate memory dynamically at runtime?
Which header file must be included to use malloc() and free() functions?
What happens when malloc() fails to allocate memory?
What is the result of calling free() on a NULL pointer?
How many bytes are allocated by malloc(sizeof(int) * 10) on a system where int is 4 bytes?
What is the primary difference between calloc() and malloc() in C?
In a dynamic queue implementation, if front pointer is NULL, what does it indicate?