unsigned long long 就个什么东西?64位?有代码,有真相,请进
/*unsgn_pow.c */unsigned long long unsgn_pow(unsigned int x,unsigned int y){ unsigned long long res=1; if(y==0) { res=1; } else { if(y==1)a { res=x; } else { res=x*unsgn_pow(x,y-1); } } return res;}/*pow_test.c*/#include <stdio.h>#include <stdlib.h>int main(int argc,char *argv[]){ unsigned int x,y; unsigned long long res; if((argc<3)||(sscanf(argv[1],"%u",&x)!=1)||(sscanf(argv[2],"%u",&y)!=1)) { printf("Usage:pow base exponet\n "); exit(1); } res=unsgn_pow(x,y); printf("%u ^ %u= %u\n",x,y,res); exit(0);}