Feature #5556 2012-08-07 10:21

achimonbike

Warning on wrong pointer use

Hi I am new in coding C and so also to code::blocks but when I was coding something like that:

int main() { double *min=0, *max=0, *mean=0; statistik( array, i-1, &min, &max, &mean );

printf("Minimum: %.2lf\tMaximum: %.2lf\tMean: %.2lf", min, max, mean); }

a friend told me that it would be a bad compiler, when I didn't get a warning when I was writing:

double *min=0, *max=0, *mean=0; instead of double min=0, max=0, mean=0;

I still have problems to use theese pointers :-)

when I googled I got good recommandations about code::blocks and so far I like it

so perhaps You could do something thanks cheers Achim

Category
Debugging
Status
Closed
Close date
2012-08-14 08:19
Assigned to
 
ollydbg 2012-08-14 08:19

This is a general programming problem of the OP, not a feature request for C::B, so I close it.