why the control goes to else part in this program

Printable View