C Programming practice code