Why use void in C?

Viewed 52

I was looking at this simple line of code on github and noticed it ran the exact same after I took out void. Why would void even be used in this situation?

#include <stdio.h>

/*
 * @author jelathro
 * @date 2/18/13
 * 
 * Print "Hello, World!" to the console
 */
int main(void){
    printf("Hello, World!\n");
    return 0;
}
0 Answers
Related