Day: February 7, 2018

  • Bubble Sort using Call by Reference (Pointers) C Program

    In one of our previous posts we already discussed about Bubble Sort algorithm and how to implement it in C programming. In this post we will discuss about bubble sort using call by reference method. In other words we will implement the bubble sort algorithm using pointers i.e call by reference. [js] #include <stdio.h> #define…

  • Constant Pointer vs Pointer to Constant C Program

    In previous post we discussed about pointers, how to define and use pointers. In this post we will learn what’s the difference between constant pointer and pointer to constant. If we define a pointer as constant then we cannot modify its memory address. For example if we assigned the memory address of a variable ‘a’…

  • Pointers in C Programming – Code Example

    In previous posts we concluded the arrays topic. In next 2-3 posts we will discuss about pointers with some code examples. Pointers are used to store memory address of variables or arrays. In following simple program we created a pointer named as countPtr and a variable named as count. Then we assigned the address of the…