DIT - Dynamic Memory Allocation
Questions No: 1/4

Consider the following code and How many bytes of memory will be allocated?

int *ptr = (int *)
malloc(10 * sizeof(int));

Questions No: 2/4

Which function in C is used to dynamically allocate memory?

Questions No: 3/4

Which header file is necessary for using the malloc function?

Questions No: 4/4

Which of the following leads to memory leaks in a C program?