Posts
 
Reputation
Joined
Last Seen
Strength to Increase Rep
+0
Strength to Decrease Rep
-0
0% Quality Score
Upvotes Received
0
Posts with Upvotes
0
Upvoting Members
0
Downvotes Received
1
Posts with Downvotes
1
Downvoting Members
1
1 Commented Post
0 Endorsements
Ranked #107.55K
~792 People Reached
Favorite Forums
Favorite Tags
c++ x 1

1 Posted Topic

Member Avatar for Asif_NSU

free() works similar to both delete and delete[] according to the sittuation it is used. for example consider: int *p=(int*)malloc(sizeof(int)); free(p); //de-allocates memory of one integer size {i.e, sizeof(int);} // works similar to delete p int *p=(int*)malloc(sizeof(int*15)); //here 15 is an arbirtrary size free(p); //de-allocates memory of 15 integers size …

Member Avatar for ahtaniv
0
792

The End.