added c/ex3.c