Dear Sandeep,
I too agree with u that buildings which are used mainly for residential purposes except hotels and boarding houses are subject to depreciation at 5%. Hence, when the asset is sold, it attracts the provisions of Section.50. When the asset is sold, the net result is treated as STCL. Section 50 deems the gain arising on transfer of depreciable assets only for the purpose of computaiton of capital gain.The benefit of indexation is denied and only WDV is allowed. However, such deeming fiction cannot take away the character of the asset as a long term capital asset. Hence, such buildings are LTCA only. i guess your question may be intended to avail exemption under sections 54EC