I have computed an array y[100] in a subfunction.
The value of y needs to be referenced in the main function.
Is it possible for me to pass the address of y[100] from the sub-function to the main function using the statement 'return(&y);' and reference y in main function using a pointer?
Is there any similar way to access the variables by reference in a sub-function?
The value of y needs to be referenced in the main function.
Is it possible for me to pass the address of y[100] from the sub-function to the main function using the statement 'return(&y);' and reference y in main function using a pointer?
Is there any similar way to access the variables by reference in a sub-function?
Comment