Hello all, as the title states, I am trying to pass a variable into an array in C. Specifically I am trying to get the random value of TMR0 of the pic that I am working on into the array. The TMR0 status is an unsigned number from 0-255(I believe). I don't find much information on Google on passing a variable into an array. Is this not the right way of doing things? Is there an intermediate step in between?
My thinking is:
It would be just too easy to simply feed a number into an array
Thanks for any help
My thinking is:
Code:
char Random[2] = TMR0;
It would be just too easy to simply feed a number into an array
Thanks for any help