int a[] = {1,2,}; Why is a trailing comma in an initializer-list allowed?
Maybe I am not from this planet, but it would seem to me that the following should be a syntax error: int a[] = {1,2,}; //extra comma in the end But it’s not. I was surprised when this code compiled on Visual Studio, but I have learnt not to trust MSVC compiler as far as … Read more