When engine is cold car gives check engine?

It could Neva number of things depending on the type of car and engine. The year is also an important factor.