completet chapter 5

This commit is contained in:
2021-10-20 10:47:06 +02:00
parent d6287d6002
commit d76e6b7ffc
8 changed files with 113 additions and 2 deletions
+1 -1
View File
@@ -19,7 +19,7 @@ int* ret_array2(){
int main(){
int new_array[10];
ret_array(new_array,10); //Array is already a pointer, pointing to the first element;
ret_array(new_array,10); // But handled as a normal pointer we loose the array size
for(int i:new_array)
cout <<"Number "<<i<<endl;