hey..nice question..
1)first of all u hv written int main()..ie return type of main is int and u r not returning any thing...at last u should write return 0;
2)after taking 1st character buffer...