CodeSteps

Python, C, C++, C#, PowerShell, Android, Visual C++, Java ...

Author : Malin

In my more than 30+ years of experience in the IT industry, I always showed interest in learning new things; and keep practicing what I learned. In my leisure time, I read books, play games & watch movies. I always like to play with my kids. :)

C Programming – How to use bit fields in structures?

Structures in C are used to group multiple variables of the same or different types. The variables inside the structures can be accessed through its structure variables. I recommend you to read the article, “C Programming – Understanding Structures in C“, before proceeding with this. Usually, ‘C’ structures are to group related information. ‘C’ compiler […]

C Programming – Dealing with files – How to use open function to open a file?

We have discussed that ‘C’ provides buffered and un-buffered functions for file management. We have already discussed some of the buffered functions in our previous articles; “C Programming – Dealing with files – How to read from a file?“, “C Programming – Dealing with files – How to write to the file?” and “C Programming – Dealing […]

C Programming – Dealing with files – How to read from a file?

C library provides a good number of file handling functions to deal with files and directories/folders. Generally, we can classify these functions as: Buffered functions and Un-buffered functions. Un-buffered functions are the raw functions that deal directly with storage devices. Whereas, buffered functions maintain memory buffers to improve the performance and reduce the number of […]

C++ – Operator Overloading

One of the beautiful features of ‘C++’ is its ability to support Operator Overloading. ‘C++’ Operator Overloading allows changing the behavior of operators when using them with ‘C++’ class objects. One of the best examples of Operator Overloading is the ‘+’ operator. Usually, the ‘+’ operator will add two integer operands and produce an integer […]

C Programming – Dynamic memory allocation

C language Programming provides functions to create and release memory dynamically. There are two types of functions ‘C’ provides: One type of functions allocates memory in the heap. malloc calloc realloc Other type of function(s) release the memory from the heap. free Now you will get the doubt; why release memory functions are required? Why […]

Scroll to top