03 February, 2023 - 09:21 AM
@kazmi99 there is a response above from a banned user. In this example, the
function takes two arguments: an array
and an integer
. The function loops through the elements of the array using a for loop and prints each element to the console. The
function creates an array
and calls the
function to print the elements of the array to the console.
Code:
printArray
Code:
arr
Code:
size
Code:
main
Code:
arr
Code:
printArray