हिंदी
तमिलनाडु बोर्ड ऑफ सेकेंडरी एज्युकेशनएचएससी विज्ञान कक्षा ११

Does testing the loop condition affect the loop invariant? Why? - Computer Science

Advertisements
Advertisements

प्रश्न

Does testing the loop condition affect the loop invariant? Why?

टिप्पणी लिखिए

उत्तर

No, the loop condition does not affect the loop invariant. Because the loop invariant is true at four points.

  1. At the start of the loop.
  2. At the start of each iteration.
  3. At the end of each iteration.
  4. At the end of the loop.
shaalaa.com
Loop Invariant
  क्या इस प्रश्न या उत्तर में कोई त्रुटि है?
अध्याय 8: Iteration and recursion - Evaluation - Section - B [पृष्ठ ११३]

APPEARS IN

सामाचीर कलवी Computer Science [English] Class 11 TN Board
अध्याय 8 Iteration and recursion
Evaluation - Section - B | Q 3. | पृष्ठ ११३
Share
Notifications

Englishहिंदीमराठी


      Forgot password?
Use app×