got two warning when compiling , the .exe file works fine with these warning but i prefer to get rid of them :) if anyone can point me to a general website for indirection warnings that would be nice because i don't know anything about them or a fix with a simple explanation
Thanks
Sam
USAGE
*Code to calculate boolean product of two unknown square matrix sizes
WARNINGS:
boolean.c(13) : warning C4047: '=' : 'int *' differs in levels of indirection fr
om 'int'
boolean.c(46) : warning C4047: 'return' : 'int' differs in levels of indirection
from 'int *'
CODE(part of it)
Expand|Select|Wrap|Line Numbers
- //PROTOTYPES
- int boolean_mproduct(int *xptr , int *yptr , int s);
- //MAIN
- void main(void)
- {
- ........................
- ........................
- int *zptr;
- zptr = boolean_mproduct(&x[0][0],&y[0][0],s); //line 13
- .......................
- }
- //FUNCTION
- int boolean_mproduct(int *xptr , int *yptr , int s)
- {
- int *zptr;
- zptr = (int *)malloc(s*s*sizeof(int));
- .......................................
- .......................................
- return zptr; //line 46
- }