Structures of ground and excited states in C isotopes