I am trying to rewrite a program in C in java. I have no experience in C, but some of them are in C ++, so I understand some things of a pointer / array. I'm a little confused though ... I am assigned the following code in C:
void ProcessStatus(Char *Stat){ DWORD relayDate; DWORD APIDate; version3=false; version4=false; version9=false; tiltAngle = false; ver4features=0; tooNew=false; ProgRev=0; switch(Stat[14]){
From what I understand, a pointer to char is passed to the ProcessStatus function; and I assume that the last line of code represented by Stat[14] calls it inside the array.
So I'm confused about how to pass a pointer to a char inside an array in Java.
Any help would be appreciated, even if it helps me understand the C code. Thanks.
Juice source share