My program needs to have at least 15instructions with at most 70 string length. It should be declared inside a structure,
Is that the right code or.. Thank you :))Code:typedef char string70[71];
typedef struct{
string70 instruct[15];
}Recipe;
....
int main(){
Recipe x;
.....
fgets(x.instruct[1],sizeof(string70),stdin); /*Takes an inputed instruction*/
x.instruct[1][strlen(x.instruct[1])-1]= '\0'; /*Removes the extra enter key */