Joined
Last Seen
-7 Reputation Points
- 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
0 Endorsements
Ranked #107.55K
1 Posted Topic
Re: 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 … |
The End.