So i\'m trying to make a program that reads from a file , What am trying to do i
ID: 3626950 • Letter: S
Question
So i'm trying to make a program that reads from a file , What am trying to do is ccreate an array that would print a) prints the content of any arrays of ints , b) and also prints the only odds ints in that array , c) and want to print out the indices of the odd ints in any array. btw , this is an array of 10I want each function to be in a file , and call up it from main. so here is what i have so far , idk if am doing this right
#include <studio.h>
#include <stdlib.h>
#define ARY_SIZE 10
int x [ARY_SIZE];
int numbers;
int *fpdata;
if (!(fpdata = fopen ("myfile", "r")))
printf("error") , exit;
// i think i have to create a loop here
for( int i = 0 ; i < size , i++)
scanf ("%d" , &x [ARY_SIZE];
// calls here?
i'm not sure , i'm kinda lost , please be specific when writing code , and also put comments in between , because i need to understand this , so i can do good on the test.