Code: main() means the return type of the function "main" is "int" (by default). Code: void main() means the function "main" returns void .. it doesn't return a value basically.