We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Hi,
Worked for me to compress it even more (but can't yet say if there are other drawbacks with this approach due to being new to C):
for (int i = 1; i <= 128; printf("%d ", i), i *= 2) ____ ;
Could move the ";" to same line as well with a comment for clarity
for (int i = 1; i <= 128; printf("%d ", i), i *= 2); // Empty body
The text was updated successfully, but these errors were encountered:
This is not wrong but this is not a good practice since it is not easy to read. I prefer
for (int i = 1; i <= 128; i *= 2) { printf("%d ", i); }
Sorry, something went wrong.
No branches or pull requests
Hi,
Worked for me to compress it even more (but can't yet say if there are other drawbacks with this approach due to being new to C):
for (int i = 1; i <= 128; printf("%d ", i), i *= 2)
____ ;
Could move the ";" to same line as well with a comment for clarity
for (int i = 1; i <= 128; printf("%d ", i), i *= 2); // Empty body
The text was updated successfully, but these errors were encountered: