There are welldefined functions in mathematica/matlab to reverse whatever you want.Maybe you can look at their codes and develop for your use.
Yes it is possible to write c code without main function
we executed the statement(manually). it gave the same result i.e., 21. Maybe you could ask the complier to do it either c/c++
Separate names with a comma.