Basic codes in C