mirror of
https://inf-git.fh-rosenheim.de/studavrije7683/cplusplus-training.git
synced 2026-06-29 01:23:21 +00:00
completet chapter 5
This commit is contained in:
@@ -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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user