Direct current is a unidirectional flow of current. It does not change with time and produced by sources such as solar cells,batteries,dry cells etc. whereas alternating current is that in which the cycle of current changes alternatively with time.It the result of the current produced from an AC generator in which when the coil rotates in the magnet then the direction of current produced is changed alternatively.