'format specifies type 'int' but the argument has type 'int *'

I get this error: format specifies type 'int' but the argument has type 'int *' [-Werror,-Wformat]

#include <stdio.h>

int main(void)
{
    int arr[5] = {0};

    for(int i = 1; i < 5; i++)
    {
        arr[i] = i + 1;
    }
    printf("%i", arr);
}
c


Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source