Thnx for ur reply,,but when I tried the same code chunk ( needless to say using a vc++ compiler) I recvd K= 20 for case1 alone and in all the other case viz 2 -5 K yielded 12. Did u try the code in any of the compilers or was ur answer just wat u thought will be the value of 'K' ( deduced manually ) ???
ASK
|