replace C-style arrays in example code