Skip to content

Instantly share code, notes, and snippets.

@mancusoa74
Created August 24, 2021 08:43
Show Gist options
  • Save mancusoa74/f51cee13caa61e1ea522a27a4edb3dcd to your computer and use it in GitHub Desktop.
Save mancusoa74/f51cee13caa61e1ea522a27a4edb3dcd to your computer and use it in GitHub Desktop.
#include <stdio.h>
#define N 8
int ricercaSequenziale(int vettore[], int ricercato, int n) {
/* Inserisci qui il tuo codice */
}
int main() {
/* inserisci qui il tuo codice */
if (indice_trovato >= 0)
printf("Elemento trovato: indice = %d\n", indice_trovato);
else
printf("Elemento non trovato nell'array\n");
return 0;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment