Residency is defined differently by each state. For some states (like Pennsylvania), you need to be a state resident for at least one year before the first day of enrollment, but for others (like South Carolina), it can be as high as three years before enrollment.
The choice is up to you. The important thing is to get more education. Studies show your earning potential goes up the more education you have.
Typically, a community college is nonresidential and supported locally, regionally, and/or by the state government. They offer two- and/or three-year programs and award associate degrees.