此代码使程序崩溃,求修改
#include<stdio.h>void move(int n, int m)
{
int str[100],*p,i;
for (i = 0; i < n;i++)
scanf_s("%d",str, 100);
p = str;
for (p = str; p < str+n; p++)
{
if ((p < str+n - m) == 1)
*(p + m+n) = *p;
if ((&str+n - m <= p) && (p < str+n))
*(p + m) = *p;
}
for (p =str+n; p <= str+2 * n; p++)
printf("%d", *p);
}
int main()
{
int n, m;
scanf_s("%d %d", &n, &m);
move(n, m);
return 0;
}