|
I want to do the following program, in hack, but I do not know how to work with array in that language, it follows the enuado of the program:
Write a program that looks for a value inside an array. The inputs and outputs of the
Program are:
Appetizer:
Address 0: The base address of the array.
Address 1: The number of array elements.
Address 2: the element to be searched for.
Output:
Address 3: 1 if element is present in the array, 0 otherwise.
Thanks for helping me.
|