Skip to content

Instantly share code, notes, and snippets.

@yancyn
Last active September 28, 2017 05:59
Show Gist options
  • Save yancyn/996609db0a204a37894b466b3be37417 to your computer and use it in GitHub Desktop.
Save yancyn/996609db0a204a37894b466b3be37417 to your computer and use it in GitHub Desktop.
Compile C Source Code in Ubuntu

Steps

  1. $ gedit hello.c
  2. $ gcc hello.c -o hello
  3. $ .hello

hello.c

#include <stdio.h>
int main() {
  printf("Hello World\n");
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment