Why Infinite Loop
Not what you're looking for?
Why would a programmer intentionally code the following line into a program? (Code needed to make this a complete program intentionally left out.)
#define true 1
while(true)
{
// Stuff inside loop.
}
Purchase this Solution
Solution Preview
"Why would a programmer intentionally code the following line into a program?"
- For instance when a program needs to prompt the user for an operation (from a menu) this kind of loops are used. Or an embedded system checks ...
Purchase this Solution
Free BrainMass Quizzes
Basic Computer Terms
We use many basic terms like bit, pixel in our usual conversations about computers. Are we aware of what these mean? This little quiz is an attempt towards discovering that.
Basic Networking Questions
This quiz consists of some basic networking questions.
Java loops
This quiz checks your knowledge of for and while loops in Java. For and while loops are essential building blocks for all Java programs. Having a solid understanding of these constructs is critical for success in programming Java.
Excel Introductory Quiz
This quiz tests your knowledge of basics of MS-Excel.
Basic UNIX commands
Use this quiz to check your knowledge of a few common UNIX commands. The quiz covers some of the most essential UNIX commands and their basic usage. If you can pass this quiz then you are clearly on your way to becoming an effective UNIX command line user.