How do you write an infinite loop using the for statement

  1. while(true){ }

  2. for(i=0;i>1;i--){ i++ }

  3. for ( ; ; ) { }

  4. while(false){ }


Correct Option: C

Find more quizzes: