@ saswat

"puts" is in stdio.h library and I think you have to include that, otherwise you get compilation error!!