I have a line of code as follows:
S_ptr = (BYTE*)&ARCFOUR_Sbox[0];
...where S_ptr is a Byte* and ARCFOUR_Sbox is a UINT16.
I get the errors:
C2109: subscript requires array or pointer type
C2102: '&' requires l-value
Can anyone tell me what's wrong with the line of code?
S_ptr = (BYTE*)&ARCFOUR_Sbox[0];
...where S_ptr is a Byte* and ARCFOUR_Sbox is a UINT16.
I get the errors:
C2109: subscript requires array or pointer type
C2102: '&' requires l-value
Can anyone tell me what's wrong with the line of code?