Hello, world!

main.c

#include <stdio.h>
 
int main(int argc, char** argv)
{
  printf("hello, world!\n");
  return 0;
}

編譯、執行

$ gcc main.c -o main
$ ./main
  hello, world!

Leave a Reply

Your email address will not be published. Required fields are marked *