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.
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.