#include<stdio.h>
void main()
{
char a[]="Gate2011";
char *p=a;
printf("%s", p + p[3] - p[1]);
}

Outputs 2011
Can somebody me the explanation of how it is???