Can a for statement loop indefinitely?
By on May 21, 2007 in C/C++ Interview Questions, JAVA Interview Questions
Yes, a for statement can loop indefinitely. For example, consider the following:
for(;;) ;
Java Interview Questions | IT interview questions | Software Testing Interview questions | .Net Interview Questions | Job Interview Questions & Answers | Tough Interview Questions | Technology Interview Questions | Tech Interview Questions | Testing Interview Questions | SAP Interview Questions | ABAP Interview Questions | Data Warehousing Interview Questions
Current ArticleBy on May 21, 2007 in C/C++ Interview Questions, JAVA Interview Questions
Yes, a for statement can loop indefinitely. For example, consider the following:
for(;;) ;