Hi
I am trying to write program to write data into array and to readthe the values stored in Array
For an example
The Device has 5 registers with date & time info.
Address 0: tens of seconds,
Address 1: tens of minutes,
Address 2: tens of hours,
Address 3: Day of week, 01 to 07
Address 4: tens of day of month,
I have problem with receive function I want to read the data store at the five register addressCode:#include<stdio.h> void send (int N, int *S ) { int n; for ( n = 0; n <N; n++ ) { printf("values %d \n", *S+n); } } void Receive (int N, int *P ) { int n; for ( n = 0; n <N; n++ ) { printf("values %p \n", P+n); } } void main () { int values[] = {0,1,2,3,4}; int i = 5; send (5, values); Receive (5, values); }
How to write and read the data from array in functions ?
I have problem with raceway function