This can never be done. The compiler ignores whitespaces, comments, substitute code for #define in C. These days,most of the compilers also focus on efficiency. Loop may be changed into recursion by the compiler. Hence reversing in this case is not possible.