What’s the difference between void and nothing in the parameter?

Asked

Viewed 16 times

0

What’s the difference between:

#include <stdio.h>
int main(){
    printf("hello world\n")
    return 0;
}

and

#include <stdio.h>
int main(void){
    printf("hello world\n")
    return 0;
}

It’s just that I’m new to the C language.

No answers

Browser other questions tagged

You are not signed in. Login or sign up in order to post.