t = (char*) malloc((n)*sizeof(char));
hi,
this is what i have .. and the error happens when i do
printf("T %s\n",t);
so, i changed it to this:
t=(char*)malloc((n+10)*siz
printf("T %s\n",t);
then i got the error for Conditional jump or move depends on uninitialised value(s)
...but i know it is initialised..
Main Topics
Browse All Topics





by: KdoPosted on 2009-09-06 at 18:08:46ID: 25272239
Hi zizi,
This looks like an error that I would expect in a C++ program, but I guess that it could happen in C programs, too.
My guess is that you do something like this:
double *D;
D = (double*)malloc (sizeof (double)); // If C++, you probably just do D = new double;
Then you try an reference it as an array
D[1] = 1;
Kent