Liste des Groupes | Revenir à cl c |
On 17/06/2024 14:50, DFS wrote:There's nothing wrong with ending your "main" with "return 0;". What Keith said was that it is unnecessary, that using parenthesis in the form "return(0);" looks like like a function call and is considered poor style by many people, and that it is useful to know that when "main" exists without an explicit returned value, it does so as though it had exited with "return 0;". (And in another branch, he said the return type for "main" on hosted C systems should be "int".)On 6/17/2024 3:39 AM, Kaz Kylheku wrote:If a function is defined to return an int, then you should return one.
>I think DFS might mean that they find themselves>
he finds himself
>
>unable to omit the unnecessary return 0 statement entirely.>
yes
>
>
Anything else is just lazy/sloppy. Just because main allows it as a special case doesn't mean it's a good idea.
I mean: it's really not much extra to type.
Date | Sujet | # | Auteur | |
15 Jun 24 | ![]() | 96 | DFS | |
15 Jun 24 | ![]() ![]() | 1 | Malcolm McLean | |
15 Jun 24 | ![]() ![]() | 5 | Ben Bacarisse | |
16 Jun 24 | ![]() ![]() ![]() | 2 | bart | |
16 Jun 24 | ![]() ![]() ![]() ![]() | 1 | Ben Bacarisse | |
16 Jun 24 | ![]() ![]() ![]() | 2 | DFS | |
17 Jun 24 | ![]() ![]() ![]() ![]() | 1 | Ben Bacarisse | |
15 Jun 24 | ![]() ![]() | 23 | Keith Thompson | |
16 Jun 24 | ![]() ![]() ![]() | 22 | DFS | |
16 Jun 24 | ![]() ![]() ![]() ![]() | 1 | Keith Thompson | |
17 Jun 24 | ![]() ![]() ![]() ![]() | 19 | James Kuyper | |
17 Jun 24 | ![]() ![]() ![]() ![]() ![]() | 1 | Tim Rentsch | |
17 Jun 24 | ![]() ![]() ![]() ![]() ![]() | 13 | Kaz Kylheku | |
17 Jun 24 | ![]() ![]() ![]() ![]() ![]() ![]() | 1 | Chris M. Thomasson | |
17 Jun 24 | ![]() ![]() ![]() ![]() ![]() ![]() | 6 | DFS | |
17 Jun 24 | ![]() ![]() ![]() ![]() ![]() ![]() ![]() | 5 | Richard Harnden | |
17 Jun 24 | ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() | 1 | David Brown | |
22 Jun 24 | ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() | 3 | Kaz Kylheku | |
23 Jun 24 | ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() | 1 | Keith Thompson | |
23 Jun 24 | ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() | 1 | Phil Carmody | |
18 Jun 24 | ![]() ![]() ![]() ![]() ![]() ![]() | 5 | Tim Rentsch | |
18 Jun 24 | ![]() ![]() ![]() ![]() ![]() ![]() ![]() | 4 | Keith Thompson | |
19 Jun 24 | ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() | 3 | Tim Rentsch | |
19 Jun 24 | ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() | 2 | Keith Thompson | |
19 Jun 24 | ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() | 1 | Kaz Kylheku | |
17 Jun 24 | ![]() ![]() ![]() ![]() ![]() | 4 | DFS | |
17 Jun 24 | ![]() ![]() ![]() ![]() ![]() ![]() | 3 | Ben Bacarisse | |
18 Jun 24 | ![]() ![]() ![]() ![]() ![]() ![]() ![]() | 2 | Janis Papanagnou | |
18 Jun 24 | ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() | 1 | Keith Thompson | |
17 Jun 24 | ![]() ![]() ![]() ![]() | 1 | James Kuyper | |
15 Jun 24 | ![]() ![]() | 60 | Michael S | |
16 Jun 24 | ![]() ![]() ![]() | 58 | Lawrence D'Oliveiro | |
16 Jun 24 | ![]() ![]() ![]() ![]() | 57 | Janis Papanagnou | |
16 Jun 24 | ![]() ![]() ![]() ![]() ![]() | 8 | Keith Thompson | |
16 Jun 24 | ![]() ![]() ![]() ![]() ![]() ![]() | 1 | Lawrence D'Oliveiro | |
16 Jun 24 | ![]() ![]() ![]() ![]() ![]() ![]() | 6 | Janis Papanagnou | |
16 Jun 24 | ![]() ![]() ![]() ![]() ![]() ![]() ![]() | 5 | DFS | |
16 Jun 24 | ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() | 4 | David Brown | |
16 Jun 24 | ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() | 2 | bart | |
17 Jun 24 | ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() | 1 | David Brown | |
17 Jun 24 | ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() | 1 | DFS | |
16 Jun 24 | ![]() ![]() ![]() ![]() ![]() | 45 | Janis Papanagnou | |
16 Jun 24 | ![]() ![]() ![]() ![]() ![]() ![]() | 44 | Keith Thompson | |
16 Jun 24 | ![]() ![]() ![]() ![]() ![]() ![]() ![]() | 43 | Janis Papanagnou | |
16 Jun 24 | ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() | 20 | Keith Thompson | |
16 Jun 24 | ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() | 19 | Janis Papanagnou | |
16 Jun 24 | ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() | 2 | Malcolm McLean | |
16 Jun 24 | ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() | 1 | Janis Papanagnou | |
16 Jun 24 | ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() | 16 | Keith Thompson | |
17 Jun 24 | ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() | 15 | Janis Papanagnou | |
17 Jun 24 | ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() | 12 | Keith Thompson | |
17 Jun 24 | ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() | 11 | Janis Papanagnou | |
17 Jun 24 | ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() | 5 | James Kuyper | |
18 Jun 24 | ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() | 1 | Keith Thompson | |
18 Jun 24 | ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() | 3 | Janis Papanagnou | |
18 Jun 24 | ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() | 1 | James Kuyper | |
18 Jun 24 | ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() | 1 | Keith Thompson | |
18 Jun 24 | ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() | 5 | Keith Thompson | |
18 Jun 24 | ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() | 1 | Janis Papanagnou | |
19 Jun 24 | ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() | 3 | Keith Thompson | |
19 Jun 24 | ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() | 2 | David Brown | |
19 Jun 24 | ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() | 1 | Keith Thompson | |
17 Jun 24 | ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() | 2 | James Kuyper | |
17 Jun 24 | ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() | 1 | Janis Papanagnou | |
16 Jun 24 | ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() | 7 | Michael S | |
16 Jun 24 | ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() | 6 | Janis Papanagnou | |
16 Jun 24 | ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() | 5 | Michael S | |
16 Jun 24 | ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() | 4 | Janis Papanagnou | |
16 Jun 24 | ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() | 3 | Michael S | |
16 Jun 24 | ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() | 2 | Janis Papanagnou | |
16 Jun 24 | ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() | 1 | Michael S | |
17 Jun 24 | ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() | 15 | Keith Thompson | |
17 Jun 24 | ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() | 11 | Tim Rentsch | |
17 Jun 24 | ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() | 8 | Janis Papanagnou | |
17 Jun 24 | ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() | 6 | DFS | |
17 Jun 24 | ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() | 2 | Chris M. Thomasson | |
17 Jun 24 | ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() | 1 | Keith Thompson | |
17 Jun 24 | ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() | 2 | Keith Thompson | |
18 Jun 24 | ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() | 1 | David Brown | |
18 Jun 24 | ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() | 1 | Janis Papanagnou | |
18 Jun 24 | ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() | 1 | Tim Rentsch | |
17 Jun 24 | ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() | 2 | James Kuyper | |
19 Jun 24 | ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() | 1 | Tim Rentsch | |
17 Jun 24 | ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() | 3 | Janis Papanagnou | |
17 Jun 24 | ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() | 2 | Keith Thompson | |
17 Jun 24 | ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() | 1 | Janis Papanagnou | |
16 Jun 24 | ![]() ![]() ![]() ![]() ![]() | 1 | Malcolm McLean | |
16 Jun 24 | ![]() ![]() ![]() ![]() ![]() | 2 | Michael S | |
16 Jun 24 | ![]() ![]() ![]() ![]() ![]() ![]() | 1 | Janis Papanagnou | |
16 Jun 24 | ![]() ![]() ![]() | 1 | DFS | |
16 Jun 24 | ![]() ![]() | 6 | Lew Pitcher | |
16 Jun 24 | ![]() ![]() ![]() | 1 | Malcolm McLean | |
18 Jun 24 | ![]() ![]() ![]() | 1 | Lawrence D'Oliveiro | |
25 Jun 24 | ![]() ![]() ![]() | 3 | Lew Pitcher | |
25 Jun 24 | ![]() ![]() ![]() ![]() | 2 | DFS | |
25 Jun 24 | ![]() ![]() ![]() ![]() ![]() | 1 | Lew Pitcher |
Les messages affichés proviennent d'usenet.