CodeThatCompiles
This is the big(will be one day) list of code snippets we can compile and that made us say "Waw! That's pretty cool!", when we saw it succeeded.
Arrays
Test of some arrays and while loops.
int main()
{
int[1000] t;
int x = 0;
while(x < 1000)
{
t[x] = x + 1;
x = x + 1;
}
return t[x-1] / 100;
}
And...
Returns: 10
