Update and rename outputviapointers.c to outputviapointers.cpp

Pass by reference does not exist in C, so changing to C++