J
Johs
For some reason I get a compile error when I try to compile this:
#include <stdlib.h>
#include <stdio.h>
#define M 3;
typedef int p[M];
int main(int argc)
{
return 0;
}
gcc -g test.c -o test
test.c:5: error: expected ']' before ';' token
make: *** [test] Error 1
Any ideas, have looked at it from all directions I cannot see the error
#include <stdlib.h>
#include <stdio.h>
#define M 3;
typedef int p[M];
int main(int argc)
{
return 0;
}
gcc -g test.c -o test
test.c:5: error: expected ']' before ';' token
make: *** [test] Error 1
Any ideas, have looked at it from all directions I cannot see the error