@yashkumar18 i have one doubt…i initialised ft[0…n]=0 as it is required…now unitialised it and still got an AC.How?
Because when delcared globally, all elements =0 already , but not so when declared inside main, see this → Nc7pzo - Online C++0x Compiler & Debugging Tool - Ideone.com , VMK4SE - Online C++0x Compiler & Debugging Tool - Ideone.com
great
Thanks a lot