C language practise problems