Void main()
{
int x=5,y=2;
int *p;
p=&x;
y=*p;
x=*y;
printf("y is %d x is %d\n",y,x);
}
what are the errors in the above code i think its 2 semantic errors and no lexical error V usage for void wont result in lexical error right ? it should be a type mismatch error and the other error is dereferencing y