On the dynamic chromatic number of graphs