[Solved] How Do I Check If An Element In An Array Is An Address? [closed]
No, there’s no way to tell whether an array element has been initialized or not. You could use calloc() instead of malloc(), this automatically initializes everything to 0, so you could do: if (array[0] == 0) { array[0] = 5; } else { array[0] *= 3; } But this won’t work if 0 is a … Read more