Hello World in C



hello.c | repository | view raw
1
2
3
4
5
6
#include <stdio.h>

int main(int argc, char *argv[], char *envp[]) {
  printf("hello world\n");
  return 0;
}

Makefile | repository | view raw
1
2
3
4
5
6
7
CC=gcc

hello: hello.c
	$(CC) -o hello hello.c

clean:
	rm hello

References:

[1]