logoalt Hacker News

on_the_trainyesterday at 6:55 PM2 repliesview on HN

It's been the go-to syntax for 15 years now


Replies

Night_Thastusyesterday at 7:50 PM

Go-to? I've never seen a project use it, I've only ever seen examples online.

show 1 reply
cpburns2009yesterday at 8:15 PM

Now I haven't touched C++ in probably 15 years but the definition of main() looks confused:

> auto main() -> int

Isn't that declaring the return type twice, once as auto and the other as int?

show 2 replies