Story starts from failure. in 1969 a big project named Multics was in trouble. It was a joint venture between General Electric, MIT, and Bell Telephone Laboratories to build an operating system. This operating system was not fast and stable as per expectations so the Bell Lab staff withdrew from this project. Team of Bell … Continue Reading….
This article will explain that why and how pointers and arrays are similar. There is a quick introduction about pointer constants and pointer variables because these terms are used in this article very often. The place where the address of a variable can be stored is called pointer variable and the address of that variable … Continue Reading….
In my previous blog “Pointers. An indirect data access” we have discussed in a simple way that how you can access data by using pointers. Integer, character and double are different types of variables which can be declared and initialized in memory. int i; i = 20; char ch; ch = ‘A’; We know that pointers are also variables … Continue Reading….
This article is the continuation of pointer arithmetic, If you are not familiar with pointer arithmetic then have a look on my article pointer arithmetic. Changing the behavior of one type of variable to another type is known as type casting. Have a look on following example double a = 10.5, b = 20.3; int … Continue Reading….
In pointers there are two arithmetic operations which can be performed. One is addition and second is subtraction. When you add some numbers in pointer it means that you are moving forward in memory and when you subtract some numbers then it means you are traversing back from that address where pointer is pointer at … Continue Reading….
Pointer to constant and constant pointer are bit confusing terms for some people but in this article I will try to make it clear. In my previous blog “Pointers. An indirect data access” we have discussed in a simple way that how you can access data by using pointers. This topic is the continuation of the previous one (please have a … Continue Reading….
While writing code in C/C++, it is normal that you write long and complicated syntax in your program. Its no problem if you are writing this long syntax only once or twice in a program, but if you need to write these lines of code more often then its bit annoying and time consuming. There … Continue Reading….