const char anarray[5]={1,3,5,7,9}; The above works well. But occupies a lot of mem. const char code anarray[5]={1,3,5,7,9}; Compliled and linked without an error prompt. But works bad.