Hello World! in C

This C code snippet includes the necessary header file and defines a simple 'main' function that prints 'Hello World!' to the console and returns 0.

Hello World! in C
Photo by Tianyi Ma / Unsplash

This C code snippet includes the necessary header file and defines a simple 'main' function that prints 'Hello World!' to the console and returns 0.

#include <stdio.h>

int main()
{
  puts("Hello World!");
  return(0);
}