标签:io for sp c r bs return 方法 print
#include <stdio.h>
#include <string.h>
//注意这种实现方法,
unsigned Reverse( unsigned a )
{
unsigned b = 0;
for( ; a; a/=10 )
{
b = b*10 + a%10;
}
return b;
}
int main(void)
{
int a = 259;
printf("%d\n",Reverse(a));
return 0;
}
标签:io for sp c r bs return 方法 print
原文地址:http://www.cnblogs.com/wqh2965031/p/3991073.html