Chapter

Other Issues

From ComputerScienceOne by Dr Chris Bourke

Concepts

  1. How does a do-while loop work in C?

    "int i;\n\ndo {\n\n//perform some action\n\ni++;\n\n} while(i<=10);\n\nCode Sample 17.4.: Do-While Loop in C appear at the end of the continuation condition even though it is not an executable stateme

  2. How can you simulate a foreach loop when iterating over an array in C?

    "C does not support a traditional foreach loop. When iterating over a collection like an array, you iterate an index variable, typically with a for loop. However, there are some syntactic tricks that

Other Issues | ComputerScienceOne | Bifalgorithm | Bifalgorithm