hello to all of you, is there a way to have a array and give each element of the array a special name? An example:
float my_array[20]; . . for(i=0;i<20;i++) send(my_array[i]; . .
Could you possibly be wanting something as simple as the preprocessor's text substitution?
#define actual_temperature my_array[1] #define minimum_temperature my_array[2] #define maximal_temperature my_array[3]
Hallo to everybody. Now being back from camping-holiday in Italia i wana thank you for your help.
this fits perfect to my requirements, thank you Dan, i would have send you a picture-postcard from Pisa if i have had your adress ;-)
This hint is very helpful, everybody needs a little help if there are tomato-slices on front of your eyes ;-)
this fits perfect to my requirements,
It is a fairly ugly way to do this and will confuse the heck out of anyone trying to maintain it.
Use a union instead. At least this makes it clear which array you're actually referencing to.
View all questions in Keil forum