Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Compare to this:

    #include <stdio.h>
    
    int main() {
        printf("Hello world!\n");
        return 0;
    }
Woo! Your first program and I count, at most, 2 things that could be described as "magic" for someone who's never seen C before (the stdio library and double quotes being syntactic sugar for an array of chars). Even then, those two things are deterministic, so they won't remain magical for long.


"But what does 'return 0' do?" "It returns the value zero to the calling process." "Calling what?" "The process. Usually it will be the shell." "Wait, you just said process, what is this 'shell'?"




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: