Your program has syntax errors, and your compiler is trying to tell you about the right syntax it was expecting. Look between your for loop parentheses and make sure it is written with semi-colons separating the three terms. Make sure that all your lines end with a semi-colon.
Edited to add: Changing array[i] to array[5] does not address the syntax errors that are still in this version of the program. Perhaps you changed other things, but no, doing that did not address the problems. Look at my compile of your latest code for proof of that:
Code:
C:\Users\jk\Desktop>gcc -c vead.c
vead.c: In function 'main':
vead.c:6:24: error: expected ';' before ')' token
for (i = 0, i < 5; i++)
^
vead.c:9:2: error: expected ';' before '}' token
}
^
C:\Users\jk\Desktop>more vead.c
#include <stdio.h>
int main (void)
{
unsigned i, array[5] = {1,2,3,4,5};
for (i = 0, i < 5; i++)
{
printf(" Print array element : %d \n", array[5])
}
return 0;
}
With errors like these, no executable is made, so there is nothing to run.