retagged by
1,023 views

4 Answers

4 votes
4 votes

Option B:free(var-name)

Dynamically allocated memory created with either calloc() or malloc() doesn't get freed on their own. You must explicitly use free() to release the space.
Syntax of free:
free(ptr);  This statement frees the space allocated in the memory pointed by ptr.

1 votes
1 votes
option B

free(ptr) is sytnax to free the dynamic memory allocated in the heap
Answer:

Related questions

2 votes
2 votes
2 answers
1
admin asked Mar 31, 2020
6,339 views
The maximum combined length of the command-line arguments including the spaces between adjacent arguments is:$128$ characters$256$ characters$67$ charactersIt may very fr...
4 votes
4 votes
4 answers
2
admin asked Mar 31, 2020
1,488 views
What is the meaning of following declaration?int(*p[7])();$p$ is pointer to function$p$ is pointer to such function which return type is array$p$ is array of pointer to f...
2 votes
2 votes
1 answer
3
admin asked Mar 31, 2020
822 views
The keyboard used to transfer control from a function back to the calling function is:switchgo togo backreturn
0 votes
0 votes
1 answer
4
admin asked Mar 31, 2020
6,519 views
Given a class named student, which of the following is a valid constructor declaration for the class?Student student(){}Private final student(){}Student(student s){}Void ...