Using the concepts we looked at in A For Loop Without a For Loop and A Simple Infinite Loop, we can call a different function rather than calling the same one in a loop. In this post, we are going to call a function within main(), by overwriting main()'s return address and replacing it with the … Continue reading A Call Without a Call
Author: Tom
A For Loop Without a For Loop
Let's build on the infinite loop we created in the post A Simple Infinite Loop, and turn it into a for loop. We will use it to loop over the digits 0 through 9. The program looks like this: #include <stdlib.h> #include <stdio.h> void for_loop(); int main () { int min = 0; int max … Continue reading A For Loop Without a For Loop
A Simple Infinite Loop
Usually, you don't want to have something looping forever and ever. It serves no purpose. There has to be a condition when whatever needs to be done is finished and the loops stops. Unless we want to write a program to specifically do something it's not supposed to. Which is precisely what we will do … Continue reading A Simple Infinite Loop

