Samstag, 1. Oktober 2011

EE5806 image processing : C cannot return an array

C cannot return an array

It should be mentioned that the return statement CANNOT be used to return an array, since return can pass only a single-valued expressed back to the calling portion of the portion.

Therefore, if the elements of an array are to be passed back to the calling portion of the program, the array must either be defined as an EXTERNAL whose scope includes both the function and the calling portion of the program, or it must be passed to the function as a formal argument.



Keine Kommentare: