Infinite loop in C

Status
Not open for further replies.
+1 for openai dot com
 
this is the best programming work I've ever done in my career, here you go:


Code:
#include <stdio.h>

int main() {

    for(;;) //this makes you enter the Matrix
        printf("Hello world");
    return 0;
}


 

reddensoft

In most computer programming languages, a while loop is a control flow statement that allows code to be executed repeatedly based on a given boolean condition. The boolean condition is either true or false. It is an infinite loop which will run till a break statement is issued explicitly.
 
it's an example code
while (1) {
// Your code
}
 
this is the best programming work I've ever done in my career, here you go:


Code:
#include <stdio.h>

int main() {

    for(;;) //this makes you enter the Matrix
        printf("Hello world");
    return 0;
}

Or:

#include <stdio.h>int main() { while(1) //this makes you enter the Matrix printf("Hello world"); return 0;}
 
Status
Not open for further replies.
Back
Top