I've downloaded a program which seems to have an error at the line:
for(i=0; i<SIZE_OF_DATA; i--){
in main.c, however as a newbie programmer I'm not too sure how to resolve it.
Here's main.c :
#include <stdio.h>
#include "util.h"
#define SIZE_OF_DATA 10
int main(void) {
int data[SIZE_OF_DATA];
generateRandomData(data, SIZE_OF_DATA);
int i;
for(i=0; i<SIZE_OF_DATA; i--){
printf("%d: %d\n",i,data[i]);
}
return 0;
}
i--toi++infor(i=0; i<SIZE_OF_DATA; i--).igoing down to negative values? I'd think that would be pretty clear indication of what's wrong...