This is my C code:
#include <stdio.h>
void print_hello() {
printf("Hello n10321234, welcome to BSB211");
}
int main() {
print_hello();
return 0;
}
However, I keep getting the following errors when I compile and run the executable.
./print_hello: line 3: syntax error near unexpected token ('
./print_hello: line 3: `void print_hello(){'
For compiling, I use gcc print_hello.c -o print_hello
and to run I use ./print_hello.