Reversing an integer in c++

前端 未结 0 1816
感动是毒
感动是毒 2021-01-06 13:40

Is there any better way to reverse an integer than this?

    int reverse(int x) {
        int out=0;
        while(x)
        {
            if(out > INT_MA         


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题