problem with this loop and list
alright i have my 100 element list created
int list[100]={0};
for (x=0;x<100;x+=4)
{
list[x]=y;
list[x+1]=y+1;
list[x+2]=y+11;
list[x+3]=y+10;
y++;
}
now when i go to run this code and output the array to a file
the array stops after 36 and im not sure why
|
quote:
now when i go to run this code and output the array to a file
the array stops after 36 and im not sure why
What does it look like in memory, before it goes to the file? If it looks right, then the problem is in your output code, not your initialization code. What do you mean it "stops after 36"? What stops? Is 36 a value or an index?
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement
Recommended Tutorials
Advertisement