Looping through an Array in C with no output

Unk*_*own 0 c arrays loops

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;
}
Run Code Online (Sandbox Code Playgroud)

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...

MBy*_*ByD 5

  1. 如果要打印数字,则需要格式化字符串.
  2. 如果要打印数组,则需要循环遍历它.

    int i;
    for ( i = 0; i < sizeof(tiles)/ sizeof(tiles[0]); ++i)
        printf("%d ", tiles[i]); // << added a space for Dietrich Epp :)
    
    Run Code Online (Sandbox Code Playgroud)