C programming assignment