I have command line utility written in ANSI C on a Mac with a function to create a bubble sorted array for a single-linked list. I declared the loop variables.
int a = 0;   
int b = 0;
I wrote the bubble sort for loops in the abbreviated style (i.e., leaving the variable initialization empty).
for ( ; a < size; a++)  
  for( ; b < size; b++) 
This executed only once before exiting. A previous for loop using the i variable to populate the array was written the same way and executed as expected. The fix for the bubble sort loops was to put a = 0 and b = 0 back in. Is there a reason why the abbreviated for loops failed to execute?
 
     
     
    