What is the difference between realloc() and free()?
Correct Answer
The free subroutine frees a block of memory previously allocated by the malloc subroutine Undefined results occur if the Pointer parameter is not a valid pointer If the Pointer parameter is a null value, no action will occur The realloc subroutine changes the size of the block of memory pointed to by the Pointer parameter to the number of bytes specified by the Size parameter and returns a new pointer to the block The pointer specified by the Pointer parameter must have been created with the malloc, calloc, or realloc subroutines and not been deallocated with the free or realloc subroutines Undefined results occur if the Pointer parameter is not a valid pointer
More questions
1. Who is responsible for maintaining the Accounts receivable in an organization?
Correct Answer: A commercial bank is a type of bank that provides services such as accepting deposits, making business loans, and offering basic investment products Commercial bank can also refer to a bank or a division of a bank that mostly deals with deposits and loans from corporations or large businesses, as opposed to individual members of the public
Correct Answer: PL/SQL tables are scalar arrays that can be referenced by a binary digit They can be used to store values for later queries and calculations