2026-09-17 17:04 UTC
Cake reports usage of uninitialized variables.
http://cakecc.org/playground.html?code=I3ByYWdtYSBzYWZldHkgZW5hYmxlCgppbnQgbWFpbihpbnQgYXJnYywgY2hhcioqIGFyZ3YpCnsKICAgIGludCB4OwogICAgaW50IHk7CiAgICB4ID0gMjsKICAgIGlmIChhcmdjID4gMSkKICAgICAgICB5ID0gMjM7ICAgIAogICAgcmV0dXJuIHggKyB5Owp9&to=-2&options=
In C, local variables like
T x;
are always uninitiated does matter the type T.
Uniform and simple.
Replies (0)
No replies.