I'm writing a subroutine display(Z, n, flag), where Z is an int/ string array, n is the length of the array and the flag indicates if Z is an address of string or integer array.
Based on the value of the flag, the subroutine either displays Z as a byte array of length n, displaying each byte as a character, or it displays Z as an integer array.
And here's where the confusion is. I'm having a hard time understanding how to differentiate between the 2 address. I feel like this is something incredibly basic but I just can't seem to figure it out. Any/all ideas would be appreciated!