Ask Your Question
2

Is it impossible to provide an array as an input to a function?

asked 2022-05-28 11:00:00 +0000

huitzilopochtli gravatar image

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
2

answered 2022-11-26 02:00:00 +0000

lalupa gravatar image

No, it is not impossible to provide an array as an input to a function. In fact, arrays are commonly used as inputs to functions in many programming languages, including C, Java, and Python. When passing an array as an argument to a function, the array can be passed either as a pointer or directly as an argument (in languages like Python). The function can then access and manipulate the elements of the array as needed.

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account. This space is reserved only for answers. If you would like to engage in a discussion, please instead post a comment under the question or an answer that you would like to discuss

Add Answer


Question Tools

Stats

Asked: 2022-05-28 11:00:00 +0000

Seen: 8 times

Last updated: Nov 26 '22