Does anyone know a good (free) C# eBook for intermediate programmers? I want something that covers generics, threads, events, delegates, etc.
C library function - free() The C library function void free(void *ptr) deallocates the memory previously allocated by a call to calloc, malloc, or realloc.
3.2. 3.3 Freeing Memory Allocated with malloc When you no longer need a block that you got with malloc , use the function free to make the block available to be allocated again. The prototype for this function is in stdlib. h .
The free() function in C++ deallocates a block of memory previously allocated using calloc, malloc or realloc functions, making it available for further allocations. The free() function does not change the value of the pointer, that is it still points to the same memory location.
The free() function frees the memory space pointed to by a pointer ptr which must have been returned by a pre‐ vious call to malloc() , calloc() or realloc() . Otherwise, or if free(ptr) has already been called before, undefined behavior occurs. If ptr is NULL , no operation is performed.
Here are a few open source books:
I found these two books fairly useful.
The C# School Book - this one covers just about everything you asked about, although it's a bit dated.
and of course, Rob Miles' C# Yellow Book
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With