1.Variable and where can we find it!


      SOURCE CODE
  1. #include <stdio.h>
  2. int main()
  3. {
  4.                 int var;
  5.                 var=5;
  6. }



The code above is a simple program in which a variable “var” of integer type is declared in the first line of main function and then “var” is initialized with the value 5 with the help of assignment operator (=).

2.Pointer! Pointing! What? (p.part 1)


Source Code
  1. #include<stdio.h>
  2. void main()
  3. {
  4.                 int var;
  5.                 var=5;
  6. }


Now we know that how a variable gets stored inside your machine (if not click here).
So, a memory space is allocated inside the memory as soon as the variable is variable is declared and the space is filled with the content when the value is assigned to the variable in the code and the memory space can be accessed with the name of the variable or the memory address given to it.

3.A way through the pointer (p.part 2)


Now we have the ability to store the address of a variable in a separate variable know as pointer variable and through that variable we can easily access the value of other variable whose address it is storing.(If you found this statement confusing you probably should give another good read to this article.)  
In this article we would try to break inside the variable using various ways.
Let’s take a look at the following code:-
  1. #include<stdio.h>
  2. void main()
  3. {
  4.                 int var;
  5.                 int *p;
  6.                 var=5;
  7.                 p=&var;
  8. }


After the execution of the above code this is how your machine will allocate memory space for both the variable var and p and put 5 inside var and address of var which happens to be 1000 inside p and as p is a pointer variable it acts as if the variable p is pointing towards the variable ‘var’.

While in reality it is just a variable (a space allocated inside the memory of your machine) that is why the pointer variable p will also have an address.

Existence of Digital Logic is a Mystery?



Why does digital logic exist? Let's understand what is digital logic?

Welcome to the world of digital logic where we would basically understand how you can make electricity dance around is a choreographed manner to do tasks like addition ,subtraction ,multiplication and division .And if you are thinking what’s the point of leaning this while you can just use a calculator to do all this well then that’s the thing which you will be understanding that how does a calculator which basically does not have any nervous system or an anatomical brain is able to do multiplication and division so fast and so efficiently.