Skip to content

Instantly share code, notes, and snippets.

#include <stdio.h>
#include <stdlib.h>
int indexOf(int* arr, int size, int element)
{
int i;
for (i = 0; i < size; i++) {
if (arr[i] == element) {
return i;
}