This is my code
int numLeft[5];
void init()
{
numLeft = {5,4,3,3,2};
}
When I tried compiling this code, I got this error: "error: expected expression before '{' token. I know in java something like this could work
int[] numLeft;
void init() {
numLeft = {5,4,3,3,2};
}
Is there something i am missing in my C code? A quick google search isn't helping.