c program design mystery (full version)