Disclaimer: I'm quite new to C and to programming in general so this question may show a lack of basic knowledge.
I'm trying to store a set of temperature readings of type 'volatile char' in an array. The temperature reading and array are declared respectively as follows:
volatile char TempCelsiusDisplay[] = "+abc.d C";
volatile char temps[60];
The rest of the code appears to work fine, until I try to store a temperature value in the array
temps[59] = TempCelsiusDisplay;
Which throws up the error:
Error: A value of type "volatile char *" cannot be assigned to an entity of
type "char" in "main.cpp", Line: 70, Col: 20
Is anybody able to explain why this is happening? It seems to me the way I have declared the array is not the correct way to declare a list of volatile chars, however I don't really understand what is happening or how to fix it.
Thanks in Advance :)