Eficicient Coding

.

while (*source != ‘\O’) could speed up replacing by while (*source)

.

…in systems using stacks, this is done by pushing the contents of the structure on the stack.
With large structures this could prove to be a problem.
However, passing a pointer uses a minimum amount of stack spaces.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

Leave a comment