Pointer Arithmetic (Addition and Subtraction) in C Programming

Source code for this Tutorial


#include <stdio.h>
#include <stdlib.h>

int main()
{

    int *p;
    p = 1000;

    printf("Size of char is %d\n",sizeof(char));

    p = p+10;

    printf("%d\n",p);

    return 0;
}