It used to be extremely common in the Seattle area for locals to spend 2 years at Bellevue Community College (now just Bellevue College) and then transfer to the University of Washington. Each year UW it's harder to transfer as the school prefers 4 year students ($). Even worse they prefer out of state students ($$). Even more worse they prefer international students ($$$)!
It is in the schools financial interest to accept non-local students who will pay more for the same education. And it gets worse every year. It's a seriously messed up issue.
Also, consider that at a community college you could learn a trade, it'll take more time but if you're likely to spend 5 or 6 years pursuing a 4-year degree why not spend just as much time and far less money also adding a skill and a credential that can pay the bills?
What you don't get is the access to all the university culture (frats/dorms/connections), or at least that's what I've been told.
Spent 2 years at Cabrillo College, in Aptos, CA - Tuition Cost: ~$1000
Spent 18 months at UC Berkeley, taking 16-21 credits per semester, including a summer quarter, after a small scholarship ($4000) - Tuition Cost: $10,000
So $11,000
My strategy: Go to community college for 2 years, do well, get the Berkeley Alumni Scholarship ($4000/year), take lots of classes, finish early. I have $0.0 debt. Due to tuition increases not sure you could replicate this, but I bet you could get close.
For those who get snobbish re community college, it really depends where you go! At Cabrillo, a lot of my profs had Phd's from reputable schools and the students were pretty sharp. You get great access to profs in the small classes. Once I got to Berkeley I had no problem walking right up to the profs there, was not intimidated. Plus you get a better perspective of the world in Community College sitting next to the pregnant single mom, the retiree, the recent immigrant and the lawyer turned Plummer in your Philosophy of Mind class! Interesting discussion!