Arrays in C | Q - 4

Last Updated :
Discuss
Comments

What is the correct way to initialize all elements of an array to zero in C?

int arr[5] = (0);


int arr[5] = {0};


int arr[5] = 0;

int arr[5] = [0];

Tags:
Share your thoughts in the comments