manichandra
Technical User
int main()
{
char *p="MANI";
char *q;
printf("%c %c %c %c\n",'M','A','N','I');
printf("%d %d %d %d\n",'M','A','N','I');
printf("%d %d %d %d %d %d %d\n", *p,*(p+1),*p+1,*(p+2),*p+2,*(p+3),*p+3);
printf("%c %c %c %c %c %c %c\n", *p,*(p+1),*p+1,*(p+2),*p+2,*(p+3),*p+3);
printf("%s %s %s %s\n", p,(p+1),(p+2),(p+3));
printf("%s %s %s %s\n", p,p+1,p+2,p+3);
printf("%d %d %d %d\n", p,(p+1),(p+2),(p+3));
printf("%d %d %d %d\n", p,p+1,p+2,p+3);
q=p;
printf("%d\n",q);
printf("%s\n",q);
q=p+1;
printf("%d\n",q);
printf("%s\n",q);
return 0;
}
{
char *p="MANI";
char *q;
printf("%c %c %c %c\n",'M','A','N','I');
printf("%d %d %d %d\n",'M','A','N','I');
printf("%d %d %d %d %d %d %d\n", *p,*(p+1),*p+1,*(p+2),*p+2,*(p+3),*p+3);
printf("%c %c %c %c %c %c %c\n", *p,*(p+1),*p+1,*(p+2),*p+2,*(p+3),*p+3);
printf("%s %s %s %s\n", p,(p+1),(p+2),(p+3));
printf("%s %s %s %s\n", p,p+1,p+2,p+3);
printf("%d %d %d %d\n", p,(p+1),(p+2),(p+3));
printf("%d %d %d %d\n", p,p+1,p+2,p+3);
q=p;
printf("%d\n",q);
printf("%s\n",q);
q=p+1;
printf("%d\n",q);
printf("%s\n",q);
return 0;
}