Skip to content

Commit

Permalink
feat(c): Add Hello World program in C
Browse files Browse the repository at this point in the history
- Create new file hello_c.c with basic Hello World implementation
- Include shebang for easy compilation and execution
  • Loading branch information
sswam committed Sep 26, 2024
1 parent f745893 commit 0b21b44
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions c/hello_c.c
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
// 2>/dev/null; set -e; X=${0%.c} ; [ "$X" -nt "$0" ] || cc -o "$X" -I$HOME/kisskit "$0" && hide "$X"; exec "$X" "$@"
// hello.c:

#include <stdio.h>
#include <stdlib.h>

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

0 comments on commit 0b21b44

Please sign in to comment.