Code compiles and can be run without segfaulting (cause: const qualifiers)