How to optimise this c program?

Printable View