C Programming, C++ PROGRAMMING

POINTER IN C

POINTER ARITHMETIC IN C

BASICS PROGRAMMING

#include<stdio.h>
void main()
{
int i=10;
int*j=&i;
printf(“ni=%d”,i);
printf(“nj=%u”,j);
i++;//increamenting value of i
(*j)++//incrementing value at address pointed to by j .i.e.i
printf(“nj=%d”,i);
printf(“nj=%d”,j);
i++; //incrementing value of i
*j++; //incrementing value of j
printf(“ni=%d”,i);
printf(“nj=%d”,j);
i++; incrementing value of i
j++; incermenting value of j
printf(“ni=%d”,i);
printf(“nj=%d”,j);
}

your output is :-
i=10
j=65524
i=12
j=65524
i=13
j=65526
i=14
j=65528