c - Unix Script syntax errors -


i trying execute simple unix program in cygwin. however, when run these errors.

./unixscript.sh: line 4: syntax error near unexpected token ('  '/unixscript.sh: line 4: `int main() { 

how can script run?

#include<stdio.h> #include<sys/types.h> #include<unistd.h>  int main() {      fork();      printf("hello world!\n");     return 0; }  


Comments

Popular posts from this blog

neo4j - finding mutual friends in a cypher statement starting with three or more persons -

php - How to remove letter in front of the word laravel -

minify - Minimizing css files -