C program codes