bit field in c

In C language structure and union support a very important feature that is the bit field. The bit field allows the packing of data in a structure or union and prevents the wastage of memory. Note: The layout of the bit-fields is implementation-defined that is the reason a lot of…

Best C++ Books

C++ is one of the most popular languages and developed by the Bjarne Stroustrup.It has imperative, object-oriented and generic programming features, while also providing facilities for low-level memory manipulation. You can make a great future with C++ because a lot of giant companies use this language frequently. Here I am…

15 Common mistakes with memory allocation, you should avoid

In C language, memory is allocated at runtime using the memory management functions (calloc, malloc … etc.). The memory management functions are guaranteed that if the memory is allocated, it would be suitably aligned to any object which has the fundamental alignment. The fundamental alignment is less than or equal…