New answers tagged

1

The syntax of init-declarator-lists is: init-declarator-list: init-declarator init-declarator-list , init-declarator init-declarator: declarator initializer So it seems they are saying a init-declarator-list should contain only 1 init-declarator at a time. so instead of int a,b; they want int a; int b; (although they could be ...


4

I suggest passing in the current value as the function's parameter. It should operate on that value and maybe recurse, computing new values to pass to the recursive calls. A function is easier to explain and more reusable if it takes responsibility for its own operations and goes from there rather than assuming it's called recursively from one particular ...



Top 50 recent answers are included