Liste des Groupes | Revenir à cl c |
On 27.02.2025 14:02, Ar Rakin wrote:Apologies, I forgot to put a space after `main'.A space in a function call, but no space in the main() definition?[...]>
Well, in the GNU style, function definitions are still different than
other styles which I like:
>
int
main(int argc, char **argv)
{
printf ("Hello world\n");
return 0;
}
>
Plus, you can also see how there is a *space* before the open
parenthesis of function call expressions.
(In Awk, BTW, because of its primitive syntax, you may not place
spaces in user-defined function calls, but may use spacing in the
function definition. - But in "C" you may do as you prefer.)
Good point.Many people argue that this is not a good idea, but I like it.Just avoid these "many people"! :-)
Les messages affichés proviennent d'usenet.