it’s reproducible on fresh install of latest EmEditor, so I think it’s a bug because default configuration comes with EmEditor does this.
1. fresh install latest EmEditor (64-bit edition)
2. launch EmEditor
3. select C++ configuration
4. copy the first code snippet in my post and paste them into EmEditor
5. enter number with keyboard to the array value between bracelet brackets