Is trying to set the seventh element of RFIDArr. It's a single uint, it can't be initialized with an array. And of course, there is no seventh element so you're trying to write off the end of the array.
You can use that construct at compile time though, like this:
wildbill:
You can't initialize variables like that at run time.
Indeed.
If you do need to initialize arrays at runtime, you need to
a) memcpy them from some other initialized array; or
b) loop through the values and set them; or
c) use the extremely … interesting C++ syntax for initializing arrays in class constructors
PaulRB# Thank you for your comment on my query. I was thinking I placed everything in text but missed the error part, sorry for that.
And your offered usage is giving error:"expected an expression" unfortunately.
Wildbill# Thank you for your comment as well. It was what I used in the beginning, it is just fine.
But, now things are real and dynamic, there is nothing to set up front. Later, I will be assigning the values very first time by scanning RFID tags.
PaulMurrayCbr# yes, loop through assignment of the values is the way to go for me, it does the job. Thanks a lot.
So, lesson learnt, "You can't initialize variables like that at run time."