I may be wrong in my definition of what a literal array is. I am refering to the following as one:
{0x00, 0x01, 0x03}
I have a function that accepts an array as shown below:
void mote(char arry[]){}
When I am calling this function I would like to be able to do the following:
mote({0x00, 0x01, 0x03})
However my compiler(C30) complains with the following error:
error: syntax error before '{' token
I also tried the above with these brackets -> [ ] but i still get the same error.
My questions
1) Is it possible to pass a literal array into a function?
2) If yes, how?
Thank you all in advance