关于2 8题是错! 不过 不是死循环!!!!!
#include <stdio.h>
int main(void)
{
char *s ="blueguy";
int i;
int count = 0;
printf("%d",sizeof(s));
for (i = -100; i < 100; i -= 100000000) {
count += 1;
printf("%d",i);
}
printf("\n%d\n",count);
}
运行结果:
4-100-100000100-200000100-300000100-400000100-500000100-600000100-700000100-800000100-900000100-1000000100-1100000100-1200000100-1300000100-1400000100-1500000100-1600000100-1700000100-1800000100-1900000100-2000000100-2100000100
22
感谢楼主了,哈哈
2 )字符串指针是指针类型 占四个字节
8 )超过int负数的最大范围后会变为整数,循环是最终会终止的!