Skip to main content

Posts

Showing posts from 2011

Arrays & Pointers

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 ...

The first post & why Joy of Engineering?

Its my theory that all the knowledge we acquire becomes our toolbox & even the modest of things have an engineering aspect to it. I am a student of engineering and by extension a student of physics, chemistry and maths. I have often realised that even the silly stuff can be made better with engineering.  May it be a simple life hack to a very complex system that simplifies our day to day life, engineering is all around us. Have you ever enjoyed the joy of engineering something useful or something wonderful, or both? I hope that my later posts will be helpful and that it will help you find that joy of engineering.