What does

what does
for(; ; )
do in c?

Attached: 9e4208db244261a5.jpg (1280x720, 153K)

Other urls found in this thread:

youtube.com/watch?v=NbzflQJo6pI
open-std.org/jtc1/sc22/wg14/www/docs/n1570.pdf
twitter.com/NSFWRedditGif

Endless loop

Endless loop.

Endless loop

break

Endless loop

Ready up your toasters

We're in for a reddit screencap guys!

Most kawaii way of writing an endless loop

Now that you mention it, it's kinda cute.

The same as
while (1);

and
loop:
goto loop;

Oh indeed

youtube.com/watch?v=NbzflQJo6pI

for(;;) is a huge brain flex

>type safety

If for(;;) is an infinite loop then why doesn't if() compile and always continue with the consequent block

If statements require an expression to resolve.

You can write
if(0) {
/* never executed */
}

Or if(1) to make it always execute. It's really only useful for debugging though, so you can easily replace some condition with 1 or 0 to make something always or never happen.

I know how it is, I am asking why it is.

or you could commed it in or out

loop:do {goto loop;}

Prints a picture of your mom's ass at the FBI.

Because Dennis 'the menace' Rich Boi was autistic.

Blank for loops are given a non-zero constant for their second expression.

See section 6.8.5.3 in the latest publicly available version of the C11 standard: open-std.org/jtc1/sc22/wg14/www/docs/n1570.pdf

It wastes an entire compute thread making your program cry forever

printf("a picture of your mom\'s ass at the FBI.\n");

suck("My dick", 69);

Point out whoever wrote it is either really stupid or fearless. Either way, doesn't care about who comes after in vode readability.

int _ = 1;

for ( ;_; ) {
cry();
}

_ = 0;

:)