I noticed a piece of code that made me raise a few eyebrows in the code base which I am working on. Since I am not an expert of the C language, I first tried googling initializing fixed size arrays. However, I could not find anything like that:
float array[7] = {0.0,};
To be precise, I would like to know how the comma is interpreted in C here? I doubt it is a typing error, because I find this kind of initialization all over the place and for all types of arrays.
Is there any difference to just writing:
float array[7] = {0.0};