>>233
冗長なのが嫌と言うならちょっと邪道臭いけど

int func(int n){

int* tableList[] = {
tableA,
tableB,
} ;

int* TABLE = tableList[(n<10)] ;

return TABLE[1] ;
}