### Tip 4: Don't return zero from main

Part of a series of tips on POSIX and C. Start from the tip intro page, or get 21st Century C, the book based on this series.

level: Hello, world.
purpose: Eliminate a line of unnecessary code from every program

Much of the tip-a-day series will be about making your life with C more like your life with quick-and-dirty scripting languages. Toward the goal of having fewer lines of code, let's shave a line off of every program you write.

Your program must have a main function, and it has to be of return type int, so you must absolutely have

int main(){ ... }

#include <stdio.h>