IT Log

Record various IT issues and difficulties.

Tag: loop


  • Is do in C equivalent to an infinite loop

    In C programming, the do keyword does not represent an infinite loop by itself. It is part of the do-while loop construct. Unlike the while loop, which checks its condition before executing the loop body, the do-while loop executes the body at least once and then checks the condition to decide whether to repeat. A…


  • How to write code in VBA to remove one random value from 10,000 values?

    To solve the problem of removing one random value from 10,000 values in Excel using VBA, we can follow a structured approach. The solution involves reading the data into an array, selecting a random index to remove, and then writing the remaining data back to the worksheet. Approach Read Data: Extract the 10,000 values from…