The return values I keep getting are 4250916, can't figure out why.
Code:
#include <stdio.h>
float myarray[10] = {1.66,.58,-2.35,0,1.9,0,-.34,0,7.56,-.3};
int i=0,lesscount=0,morecount=0,zerocount=0;
void main(){
for(i=0 ; i<10 ; i++){
if (myarray[i] < 0){
lesscount++;
}
else if (myarray[i] == 0){
zerocount++;
}
else
morecount++;
}
printf("The number of values less than zero is %d\n\n",&lesscount);
printf("The number of values equal to zero is %d\n\n",&zerocount);
printf("The number of values more than zero is %d",&morecount);
}