How to create infinite loop

The Eduladder is a community of students, teachers, and programmers just interested to make you pass any exams. So we solve previous year question papers for you.
See Our team
Wondering how we keep quality?
Got unsolved questions?

Ask Questions
Computer-networks-lab-basic-concepts-->View question


How to create infinite loop?

code

By:batsam22

Taged users:
|batsam22|scribed|arunwebber|AchinBrandy|metaphor|neenu2|Rajiv|arun|Naveen-Kumar||debikadebnath

Likes:
Be first to like this question

Dislikes:
Be first to dislike this question

Talk about thisDelete|Like|Dislike|


Answers

If you want to make something to loop forever use

either

for(;;){
//put the code you want to loop forever here.
}


or

int temp = 0;
while (temp !=1){
/*
put the code you want to loop forever here.
Make sure you never put temp = 1 in the code you put.
*/
}

prajwalamv

Likes:
Be first to like this answer

Dislikes:
Be first to dislike this answer
Talk about this|Once you have earned teacher badge you can edit this questionDelete|Like|Dislike|
------------------------------------

Can you help us to add better answer here? Please see this



Not the answer you're looking for? Browse other questions from this Question paper or ask your own question.

Join eduladder!