Best print function?

Hello, I am just wondering about a littl thing. I have read ino the starting of a couple of book sna dnoticed a little differnce between a couple of them.

In one book the code will go like this:

1
2
3
4
5
int main(void)
{
    printf("Hello World!");
    return;0;
}


But then in another it will go like this:

1
2
3
4
int main(void)
{
    count << "Hello World!"
}


All in all, which one is better? Is one more commonly used? and which one will benefit me most as I develop my understanding of the language?

Thanks,
Steph.
Topic archived. No new replies allowed.