can anyone please tell me whats actually happening in this code.
Seems to be as if incremented pointer is pointing to the next bit of same int.
Answer is 2,0
Thanks in advance
#include<stdio.h>
#include<conio.h>
void main()
{
int arr[3]={2,3,4};
char *p;
p=arr;
p(char*)((int *)(p));
printf("%d",*p);
p=(int*)(p+1);
printf("%d",*p);
getch();
}