jeudi 23 juillet 2020

How the return 0 still works with char main()?

#include<stdio.h>
#include<stdlib.h>

char main(){
    printf("Hello World!");
    return 0;
}

Even though I return 1 or 0, the program always gives the correct output and even if the return type of main is char type but still returning an integer value works fine.

Aucun commentaire:

Enregistrer un commentaire