In C macros is a segment of the code which has some unique name. Whenever in a program we used the macro name, it is replaced by the contents of the macro. These replacements occur before the compilation of the code that is the reason there is no type checking occur with macro in C….

Bubble Sort

Bubble sort is a simple sorting algorithm that sorts the elements in ascending and descending order. It repeatedly compares the adjacent elements and swaps them if they are in the wrong order. Example to understand Bubble Sort, Suppose there is an array which contains ” 5 1 4 2 8″. If you want to sort this…

pointers as member

A pointer could be a member of structure, but you should be careful before creating the pointer as member of structure in C. Generally we take a pointer as a member when we don’t know the length of the data which need to store. Let’s see an example to the better understanding,

The above…

pointer to string array in c

In my previous article, I had described the array in brief but I have received some email from the subscriber and they want me to write an article on string array in C. If you want to read the array, you can see my article brief introduction of the array. We can create the string array…