Why is 49, 50, 51, 52 stored in the array when I declare testArray[] = {\'1\',\'2\',\'3\',\'4\',\'5\'}? How should i initialize a string array? Thanks
Because chars are actually stored as their corresponding value in ASCII.
You can declare your string as follows:
char * myString = "String";