1.2 Implement a function void reverse(char *str) in C or C++ which reverses a null-terminated string. C++: C