怎样表示一个21位的整数。
怎样定义一个21位的整数啊。不用数组,求指教。不胜感激。
程序代码:#include<stdio.h>
struct theBigNum{
int thesign;//用于存放符号,0表示正,1表示负。
int the10to6;//存放第10至第6位
int the5to1;//存放第5至第1位
};
int main(void)
{
struct theBigNum x;
x.thesign=0;//存放正整数1234567890
x.the10to6=12345;
x.the5to1=67890;
printf("%d%d\n",x.the10to6,x.the5to1);
return 0;
}

程序代码:#include<stdio.h>
#include <math.h>
struct theBigNum{
int thesign;//用于存放符号,0表示正,1表示负。
int the10to6;//存放第10至第6位
int the5to1;//存放第5至第1位
};
int main(void){
struct theBigNum x={0,0,0};
char y[10]={0};//用于获取用户输入的10个数字
int i0=0,i1=0;
scanf("%s",y);
for(i0=9;i0>=0;i0--){
if(y[i0] == 0){
continue;
}
if(i1<5){
x.the5to1+=pow(10,i1)*(y[i0]-48);
}
else{
x.the10to6+=pow(10,i1-5)*(y[i0]-48);
}
i1++;
}
printf("%d%d\n",x.the10to6,x.the5to1);
return 0;
}