#include "stdio.h"
#include "string.h"
void main()
{
char a[81]="";
char *p=a;
int n,k,pos;
puts("input the data");
gets(a);
n=strlen(a);
puts("the position you want to delete");
scanf("%d",&k);
for (p=&a[k-1];p<=a+n;p++)
{
char temp;
temp=*p;
*p=*(p+1);
*(p+1)=temp;
}
*p=0;
puts(a);
}
#include "stdio.h"
#include "string.h"
void main()
{
char a[5]="";
char *p[5];
char *max;
for (int i=0;i<5;i++)
{
p[i]=&a[i];
}
puts("input five num");
for (i=0;i<5;i++)
{
fflush(stdin);
scanf("%c",&a[i]);
}
for (i=0,max=p[i];i<5;i++)
{
if (*p[i]>*max)
{
*max=*p[i];
}
}
printf("%c",*max);
}