Skip to content

Instantly share code, notes, and snippets.

@oknauta
Last active June 1, 2024 01:04
Show Gist options
  • Save oknauta/52eb81df9f07b5dc886b6f6c164569e7 to your computer and use it in GitHub Desktop.
Save oknauta/52eb81df9f07b5dc886b6f6c164569e7 to your computer and use it in GitHub Desktop.
Prints `Hello, world!` on console in C.
/******************************************
* File: hello_world.c
* Date: 2024-05-20 | 2024-05-31
******************************************/
#include <stdio.h> // The standard library to `Hello, world!` can be printed on console.
// Function that the compiler will search first for.
int main(int argc, char const *argv[])
{
// Printing "Hello, world!"
printf("Hello, world!"); // Printing the "Hello, world"!
return 0;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment