Code:
#include <stdio.h>
#include <stdlib.h>
int readValues (FILE *,double *[],double *[],int );
main(int argc, char *argv[]) {
FILE *fp;
double x[20];
double y[20];
int values;
if (argc!=2) {
printf("You haven't input file name");
exit(EXIT_FAILURE);
}
printf("Opening file: ",argv[1],"\n");
fp = fopen(argv[1],"r");
values = readValues(fp,&x,&y,20);
fclose(fp);
system("pause");
}
int readValues (FILE *fpR,double *xR[20],double *yR[20],int max) {
}
I have this code and when i compile it shows
[Warning] In function `main':
[Warning] passing arg 2 of `readValues' from incompatible pointer type
[Warning] passing arg 3 of `readValues' from incompatible pointer type
Why...