hvala puno, inace u meduvremenu sam uspio rjesiti zadatak... smjesno je lagan al eto..
Code:
#include<stdio.h>
#include<stdlib.h>
struct broj
{
int x;
};
struct broj br;
void unos (struct broj *b, int x)
{
b->x=x;
}
ispis(struct broj *b)
{
printf("%d ",b->x);
}
int main(void)
{
struct broj *br;
int i,n,c;
FILE *dat1;
dat1=fopen("brojevi.txt","r");
fscanf(dat1,"%d",&n);
br=(struct broj*)calloc(n,sizeof(struct broj));
for(i=0;i<n;i++)
{
fscanf(dat1,"%d",&c);
unos(br+i,c);
}
fclose(dat1);
printf("\n");
for (i=n-1;i>-1;i--)
ispis(br+i);
}