It really depends on the quality of the car, how you maintain it, and how you drive. On average, cars will last at least 10 years / 100,000 mi with basic maintenance and oil changes. A well-maintained, quality car should last at least 20 years / 200,000 or more with good maintenance. A poorly maintained, low quality car that's driven roughly can be at the junk yard in 5 years.
I had a new Jetta that was in the repair shop 10 times in two years, including a long tow after an engine failure. I also had a new Honda CRV for 10 years that never needed a repair.