Can you please help me understand why I do not see the answer expected (Parity: Odd). Can I have an array of strings as constants? How do I index each string in the array?
const Parity[3] = {'None', 'Odd', 'Even'};
char string[];
sprintf(string, "Parity: %s", Parity[1]);
printf(string);
Thanks
const Parity[3] = {'None', 'Odd', 'Even'};
char string[];
sprintf(string, "Parity: %s", Parity[1]);
printf(string);
Thanks
Comment