I need to create a function that is given a table with different phrases and I must print the first phrase on the table that ends in "n". How would I go about this?
So far I have the table with three phrases with the second one ending in "n". Ive tried different things for the last hour but I'm new to C and it is tricky.
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
typedef char TTablaFrases[5][80]; //una tabla de 10 frases
int FraseAcabadaEnN (TTablaFrases tabla)
{
}
int main(void) {
TTablaFrases miTabla;
strcpy (miTabla[0], "First phrase");
strcpy (miTabla[1], "Second phrase n");
strcpy (miTabla[2], "Third phrase");
}