snippet of for loop code problem
hey, I have part of a program that has an array containing 100 items. In a secion of the array I need to shift everything up 1 spot and then inster a number at the intial shift spot, let me give example:
Code:
int data [100];
size_t I;
I need to shift data[50]......data[98] up one spot to locations
data[51]....data[99]. After the shift has occured I then want to insert the number 42 in location data[50]
I know this is a simple for loop for most, will someone show me and explain how the computer will read the for loop so I can use something similar in my program