sam topper.
- 14
- 0
#include<stdio.h>
void main()
{
char c[]="gate2011";
char *p=c;
printf("%s",p+p[3]-p[1]);
}
void main()
{
char c[]="gate2011";
char *p=c;
printf("%s",p+p[3]-p[1]);
}
int[] a;
char p[] = { '2', '0', '1', '1', '\0' };
printf("%s", p);
#include<stdio.h>
void main()
{
char c[]="gate2011";
// No need to introduce a new name, c is already a char*
// char* p = c;
printf("%s", (c + 4));
}