Article 6J9NH function declaration

function declaration

by
Mac1ek
from LinuxQuestions.org on (#6J9NH)
is any differences for declare function:

Code:int foo(int) {
//...
return (0);
}with most modern style:

Code:auto foo(int) -> int {
//...
return (0);
}And the same about main:
Code:auto main(int argc, char* argv[]) -> int {
//...
return (0);
}Thanks for answer.
External Content
Source RSS or Atom Feed
Feed Location https://feeds.feedburner.com/linuxquestions/latest
Feed Title LinuxQuestions.org
Feed Link https://www.linuxquestions.org/questions/
Reply 0 comments