prog.c:14:1: warning: return type defaults to ‘int’ [-Wreturn-type]
prog.c: In function ‘main’:
prog.c:18:6: warning: passing argument 1 of ‘displayPrime’ makes integer from pointer without a cast [enabled by default]
prog.c:11:6: note: expected ‘int’ but argument is of type ‘int *’
prog.c: In function ‘displayPrime’:
prog.c:29:26: error: ‘is_prime’ undeclared (first use in this function)
prog.c:29:26: note: each undeclared identifier is reported only once for each function it appears in
prog.c:36:23: warning: zero-length gnu_printf format string [-Wformat-zero-length]
prog.c: In function ‘checkPrime’:
prog.c:43:10: error: ‘num’ redeclared as different kind of symbol
prog.c:41:22: note: previous definition of ‘num’ was here
prog.c:45:6: error: ‘is_prime’ undeclared (first use in this function)
prog.c:46:10: error: ‘I’ undeclared (first use in this function)
prog.c:55:1: warning: control reaches end of non-void function [-Wreturn-type]
prog.c: In function ‘main’:
prog.c:21:1: warning: control reaches end of non-void function [-Wreturn-type]
Standard output is empty
test http://stackoverflow.com/questions/17425740/the-sieve-of-eratosthenes-in-c-using-arrays