dev的long double问题
#include <stdio.h>int main(void){
float f1=1.0;
float f2=1.5;
double d1=1.0;
double d2=1.5;
long double ld1=1.0;
long double ld1=1.5;
printf("float(1.0)=%08x\n",*(int*)(&f1));
printf("float(1.5)=%08x\n",*(int*)(&f1));
printf("double(1.0)=%01611x\n",*(long long*)(&d1));
printf("double(1.5)=%01611x\n",*(long long*)(&d2));
printf("londou(1.0)=%lfx %lfx %lfx\n",
*(((int*)(&ld1))+2),
*(((int*)(&ld1))+1),
*(((int*)(&ld1))));
printf("loubou(1.5)=%lfx %lfx %lfx\n"
*(((int)(&ld2))+2),
*(((int)(&ld2))+1),
*(((int)(&ld2))));
return 0;
} 错误是8 14 C:\Users\Administrator\Desktop\未命名9.c [Error] redefinition of 'ld1'
7 14 C:\Users\Administrator\Desktop\未命名9.c [Note] previous definition of 'ld1' was here
我明明在7-8里面声明了,但怎么还要我声明啊?