how can i send a reference of byte array.
void abc(byte x[]){
.
.
.
}
void loop(){
byte x[8];
abc(x);
// and then using 'x' here after modifications in function 'abc'
}
}
how can i send a reference of byte array.
void abc(byte x[]){
.
.
.
}
void loop(){
byte x[8];
abc(x);
// and then using 'x' here after modifications in function 'abc'
}
}
Apart from the extra end curly brace and not initializing the values of the array "x", your code looks good. What is the problem?
After passing the abc function, will the array values 'x' be modified in the void loop () context?
Why don't you try it?
Yes, because arrays are always "passed by address" by default
goood, it is amazing thing. THANKSS