# Hello, World! — C Programming

Source: https://www.geekswithgeeks.com/en/c/c-hello-world

> Your first program, line by line.

## The program

Save this as `hello.c`.

```c
#include <stdio.h>

int main(void) {
    printf("Hello, World!\n");
    return 0;
}
```

Output:

```
Hello, World!
```

## What each line does

`#include <stdio.h>` loads the I/O library · `int main(void)` is where execution starts · `printf` writes text, `\n` is a newline · `return 0` reports success to the OS.

**Quiz:** What does `\n` do in `printf`?

- [ ] Prints a backslash and n
- [x] Moves output to a new line
- [ ] Ends the program

*Answer:* Moves output to a new line. `\n` is the newline escape sequence.
