String Array Not Working [SOLVED]

Hi,

When a set the following array

char weekDay[] = {'Saturday', 'Sunday', 'Monday', 'Tueday', 'Wednesday', 'Thursday', 'Friday'};

then print to serial

Serial.println(weekDay[1]);

I only get the last character displayed (i.e. just the letter y )

Pete

Strings are enclosed in double quotes "like this" - not with single quotes.

Pete

Hi Pete,

Thanks for the help. Originally I had double quotes but was getting error: too many initializers for 'char' so I went to single quotes.

I released if I add an asterisk to array name it now works fines;

char *weekDay[] = {"Saturday","Sunday","Monday","Tueday","Wednesday","Thursday","Friday"};

Thanks,

Pete