Here is my code:
int main()
{
int tiles[9];
int counter=0;
int i=1;
while (counter<8)
{
tiles[counter]=i;
counter=counter+1;
i=i+1;
}
int running_total=0;
int current_number;
printf(tiles);
return 0;
}
But I get no output, what is my problem? I’m new to C so I appreciate any comments/criticism.
Edit: I do get an output, but it’s a smily face…
If you want to print an array, you need to loop through it.