News for hackers. Stuff that matters.
Re:Learn C in Y Minutes by flohofwoe on Tuesday April 13, 2021 @07:13AM (#26790682)
Just split them into separate variable definitions:

    int i1 = 1;
    int i2 = 2;
The "usual footgun" is:

    int i1, i2, i3 = 0;
Only i3 will be initialized in this case. And since one needs to write out the assignments anyway, adding the type for each variable doesn't hurt either.

(today's compilers usually have uninitialized-warnings for this though, but sometimes people forget to add a -Wall to their compiler options, especially beginners, and then get stuck on such trivial problems).

Re:Learn C in Y Minutes by thrwaeasddsaf on Tuesday April 13, 2021 @07:15AM (#26790701)
Sorry

I

can't

read

your

comment,

could

you

split

your

words

into

separate

paragraphs?