K
Krzysztof Kolago
Hello!
I wrote short program:
#include <stdio.h>
main(){
int Uporzadkowana[255][255];
int Tablica[64*1024];
Tablica[0]=1;
for(int i = 0; i < 256; i++){
for(int j = 0; j < 256; j++){
printf("i=%i, j=%i...",i,j);
}
}
printf("%i",Tablica[0]);
}
And "i" and "j" both grow up, but when I've add this line:
Uporzadkowana[j]=Tablica[0];
into loop, under printf, "i" is always "0", why??? I'm using CBuilder5.
I wrote short program:
#include <stdio.h>
main(){
int Uporzadkowana[255][255];
int Tablica[64*1024];
Tablica[0]=1;
for(int i = 0; i < 256; i++){
for(int j = 0; j < 256; j++){
printf("i=%i, j=%i...",i,j);
}
}
printf("%i",Tablica[0]);
}
And "i" and "j" both grow up, but when I've add this line:
Uporzadkowana[j]=Tablica[0];
into loop, under printf, "i" is always "0", why??? I'm using CBuilder5.