pttempmonthaddr = &tempmonth;
pttempdayaddr = &tempday;
separate(date, pttempmonthaddr , pttempdayaddr);/*function call*/
printf("\nThe month entered is %s and day entered is %f.\n", pttempmonthaddr , *pttempdayaddr) ;
return 0;
error C2440: '=' : cannot convert from 'char (*__w64 )[81]' to 'char *'
error C2664: 'separate' : cannot convert parameter 3 from 'int *' to 'int'
There is no context in which this conversion is possible
I am getting the C2440 error in the top line and C2664 error in the 3rd line from top. Can somebody help me out as to why?
pttempdayaddr = &tempday;
separate(date, pttempmonthaddr , pttempdayaddr);/*function call*/
printf("\nThe month entered is %s and day entered is %f.\n", pttempmonthaddr , *pttempdayaddr) ;
return 0;
error C2440: '=' : cannot convert from 'char (*__w64 )[81]' to 'char *'
error C2664: 'separate' : cannot convert parameter 3 from 'int *' to 'int'
There is no context in which this conversion is possible
I am getting the C2440 error in the top line and C2664 error in the 3rd line from top. Can somebody help me out as to why?
Comment