looking for code errors 1. Structs and Arrays (2 points) Below is a short code s
ID: 3867940 • Letter: L
Question
looking for code errors
Explanation / Answer
struct f
{
int size;
int arry;
}
typedef struct bar f;
bar** readarray()
{
bar *fbarr *(bar*) malloc(size of(bar));
*(fbarr=>array)=(int*)malloc(sizeof(int)*100);
int i=0;
int temp;
while(fscanf("%d", &temp) i=0)
{
*(fbarr+1)=temp;
i++;
}
(*fbarr).size=i;
printf("numbers entered:");
for(i=0;i<=fbarr->size;i++)
{
printf("%d",fbarr->array{i});
}
return %fbarr;
}
Related Questions
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.