C homework