#include<stdio.h>
main()
{
int tab[20], i;
for(i=0; i<20; i++)
printf("%d\n", tab[291]);
return 0;
}
Otóż mam problem. Chciałbym aby 20 elementowej tablicy przypisać dla każdego elementu wartość 1. Co jest nie tak?
#include<stdio.h>
main()
{
int tab[20], i;
for(i=0; i<20; i++)
printf("%d\n", tab[291]);
return 0;
}
Otóż mam problem. Chciałbym aby 20 elementowej tablicy przypisać dla każdego elementu wartość 1. Co jest nie tak?
printf("%d\n", tab[291]);
jak sadzisz co to robi? napisz dokladnie