Most people find the concept of arrays & pointers hard to comprehend. My personal theory of why people find it hard to comprehend the idea of pointers is that their knowledge is limited to just the coding part of it. I hope my illustrated tutorial will help you to understand it easily. If you don't know what happens inside the RAM when you declare a variable, don't skip to the pointers part. Read through the basics where I have explained what happens inside RAM when you declare a variable. You can download the power point presentation from, this link . PS: This guide assumes that you have already dabbled with pointers and is here for a better understanding. For all the code explained below, we shall be discussing it with the understanding that the compiler does no optimisations. Behind the scenes Lets start by looking at a piece of code, void main() { int a; a = 5; printf("Variable a has integer %d stored in ...
Knowledge is meant to be shared.