In your opinion, when creating a nested loop is it best to use the call function and if so is using a pointer the route to go when creating the function?
[QUOTE=mr.confused!;]In your opinion, when creating a nested loop is it best to use the call function and if so is using a pointer the route to go when creating the function?[/QUOTE] That's like asking when ordering a hamburger is it better to drive a Mustang? The things in your question … Read More
If your code is huge then break it into functions If you have to pass some parameters to the functions, passing them by pointers has an advantage that you can manipulate the value of the string inside the function Does this answer your question ?If not phrase it differently. As … Read More
[QUOTE]Whenever possible, try to avoid nested loop as they have a worst-case of O(n2) - Big O n square. [/QUOTE] the criticism you give is meaningful only for extremely large loops or realtime embedded applications such as scientific instrumentation and measurement. for small to average sized loops -- the vast … Read More
Edited by mr.confused!: n/a
Edited by jephthah: n/a