The inside of a car with its windows closed is hotter than outside due to green house effect as the glass in the windows absorb infrared radiations of the sun but do not allow them to escape or reflect back, thus increasing the temperature of the car on the inside.