What it is doing is passing a reference to qTime to the time function. This allows it to directly modify qTime, so that it will receive the details of the current time. Just note, if all you are doing here is seeding the random number generator, a more common approach is to do this: srand(time(0));