College student dependent

Can a parent claim a child in college if she/he dropped out for a full year at age 21 and came back after a full year? Or should the kid claim themselves after coming back and attending a year at age 22?