Hello,
I have observed a data access misaligned error in my code. I am trying to isolate the issue and find reason for its occurrence.
float *mul;
int main(void)
{
int i;
mul=(float *)malloc(36000);
*mul=0;
for(i=1; i<9000; i++)
{
*(mul+i)=*(mul+(i-1))+(1/(float)(72000/2));
printf("%f\t", *(mul+i));
}
free(mul);
return 0;
}
Please point errors in my code and if possible some rectifications that I could try.
Thank you.