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

php - Embed BBCode within itself not working -

three.js - how to load gltf in three JS -

sql server - T-SQL: Access DB objects in same schema without qualifying? -