Working With Array Functions In Cpp