In general, microcontrollers have more leeway in program space than RAM.
If you're going to ask here, please put your sample program in a form that compiles on some variety of arduino-related board. Which board you use can make a significant difference; for example pointers to functions are comparatively expensive on an AVR, because there's only one register (pair) that can be used by the ICALL/IJMP instructions.