A
Anarki
The following is the program i am trying to compile
//restrict.c
#include <stdio.h>
int main()
{
char arr[10] = "Qualifiers"
char * restrict p = arr;
int i = 0;
for(; i < 10; ++i)
printf("%c", arr);
return 0;
}
i am using cygwin in window xp SP2, my gcc version is 3.4.4
how do i compile the above program?
i tried using this
gcc -c -std=c99 restrict.c
but i get an error like this
restrict.c: In function 'main':
restrict.c:6: error: parse error before "char"
can someone help me how to compile this program??
//restrict.c
#include <stdio.h>
int main()
{
char arr[10] = "Qualifiers"
char * restrict p = arr;
int i = 0;
for(; i < 10; ++i)
printf("%c", arr);
return 0;
}
i am using cygwin in window xp SP2, my gcc version is 3.4.4
how do i compile the above program?
i tried using this
gcc -c -std=c99 restrict.c
but i get an error like this
restrict.c: In function 'main':
restrict.c:6: error: parse error before "char"
can someone help me how to compile this program??