/*PROGRAM TO SEE INCREMENTED OPERATION OF POINTER*/
#include<stdio.h>
#include<stdlib.h>
int main()
{
int i,*a,*s;
a=s=(int*)malloc(4*sizeof(int));
for(i=0;i<=4;i++)
*(a+i)=i*10;//10 20 30 40
printf("%d\n",++(*s));//++ has more priority than *...bcz...it is pre-increment..it will print ++mented value at 0 position of s....
printf("%d\n",*s);
printf("%d\n",++*s);//++ has more priority than *...bcz..it is preincrement...it will print ++mented value at 0 position of s again....
printf("%d\n",*s);
printf("%d\n",*++s);//++ has more priority than *...bcz..it is preincrement...it will print value at incremented position of s ....means value at s=1;;//