2 votes 2 votes How will you free the allocated memory? remove(var-name) free(var-name) delete(var-name) dalloc(var-name) Programming in C nielit2016dec-scientistb-it programming-in-c dynamic-scoping + – admin asked Mar 31, 2020 • retagged Aug 23, 2020 by Lakshman Bhaiya admin 1.0k views answer comment Share Follow See all 0 reply Please log in or register to add a comment.
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. Mohit Kumar 6 answered May 27, 2020 Mohit Kumar 6 comment Share Follow See all 0 reply Please log in or register to add a comment.
1 votes 1 votes Option b:- free( file?) Madhusudan5242 answered Jun 23, 2020 Madhusudan5242 comment Share Follow See all 0 reply Please log in or register to add a comment.
1 votes 1 votes option B free(ptr) is sytnax to free the dynamic memory allocated in the heap Ramu Yarru answered Aug 5, 2020 Ramu Yarru comment Share Follow See all 0 reply Please log in or register to add a comment.
1 votes 1 votes correct ans : B free(var-name) anjli answered Feb 6, 2021 anjli comment Share Follow See all 0 reply Please log in or register to add a comment.