add ex-2.c in clist and fix .gitignore