Can any one please help me out with the code that can do zooming in and out on an object when using orthographics projection (glOrtho())?

You can get the effect of zooming by moving the eye-point with gluLookAt(). I don’t recommend actually using glScale* since it will denormalize your normals for lighting.