I've just copied a code from a slide explain array creation, but from a lot of tries all come back the same errors "expected identifier or '('". Follows the code:
int example [] = { 1, 2, 3 };
for (int i = 0; i < 3; i++)
{
printf("%i \n", example [i]);
}
What I'm loosing? Is needed further brackets or declaration of main function? The TF on the video say "You don't have to do, like, main, blah, blah, blah, whatever. I just want you to initialize the array and creates a for loop to print them..." (time: 29:55 in this video)