C basic and some useful method study