By driving the car, the computer will be able to monitor the system and determine if the problem that caused the check engine light to come on has been resolved. If the problem has been fixed, the check engine light will eventually turn off. If the problem is still there, the light will remain on and you should have your car diagnosed by a mechanic.
It is important to note that resetting the check engine light does not fix the problem that caused it to come on. It simply turns the light off so that it is not distracting you while driving. If you ignore the check engine light and don't have the problem diagnosed and fixed, it can lead to more serious problems down the road.