Immediately below is the error message I get:
} ^ 1 warning generated. Undefined symbols for architecture x86_64: "_main", referenced from:
implicit entry/start for main executable ld: symbol(s) not found for architecture x86_64 clang:
error: linker command failed with exit code 1 (use -v to see invocation)
And here is the code itself:
#include <stdio.h>
#include <stdlib.h>
int isOddEven (int i) {
for (i=0; i < 100; i++){
if(i % 2 == 0){
printf("%d is an even number\n", i);
return 1;
}
else{
printf("%d is an odd number\n" , i);
return 0;
}
}
}