Possible use of 'i' before definition in function main
我是刚开始学C的,在网上找的资料里面的例题,在Turbo C 2.0里面抱错如题,希望老手们指点一下#include<stdio.h>
#include<string.h>
int main()
{
char c,s[20],*p;
int a=1234,*i;
float f=3.141592653589;
double x=0.12345678987654321;
p="How do you do";
strcpy(s,"Hello,Comrade");
*i=12;
c='\x41';
printf("a=%d\n",a);
printf("a=%6d\n",a);
printf("a=%06d\n",a);
printf("a=%2d\n",a);
printf("*i=%4d\n",*i);
printf("*i=%-4d\n",*i);
printf("i=%p\n",i);
printf("f=%f\n",f);
printf("f=6.4f\n",f);
printf("x=%lf\n",x);
printf("x=%18.16lf\n",x);
printf("c=%c\n",c);
printf("c=%x\n",c);
printf("s[]=%s\n",s);
printf("s[]=%6.9s\n",s);
printf("s=%p\n",s);
printf("*p=%s\n",p);
printf("p=%p\n",p);
getch();
return 0;
}