I am very new to C and I am hoping for some pointers. I am attempting to take an input of 7 integers of an array and search through them to see if any number appears only once. Here is what I have so far
#include stdio.h
#define ARRSIZE 7
int main(void)
{
int intarr[ARRSIZE], i, target;
printf("Please input %d integers :", ARRSIZE);
scanf("%d", &target);
for(i = 0; i<ARRSIZE; i++)
{
scanf("%d", &intarr[i]);
}
{
if(i < intarr[i])
Here is where I become lost. I get how to search for it. If number x appears in the array, dont count, if it appears only once, count. I am just having problems putting it into code. Anyways any help would be appreciated.