I am following a tutorial on the internet and the code of the tutorial is bellow.
What does *ArrayName do here? And why has it a pointer (and I don't see a Reference)
templates and such indicate a desire to reuse the code, but that hard coded 6 is going to be trouble someday. pass the 6 in as a 'size' variable maybe (better, use vector).
Proceed(NumArray1); //passes in a pointer, ok
Proceed("Test"); //I think this may be illegal in standard c++. Also test0 … you will iterate into at least one garbage location even if it compiles, because test0 is only 5 and that hard coded 6... it could also crash here, or it can run just fine as it does in the shell compiler in the forum. But its risky.