Problems w/ Sequential Search

I'm having some real trouble getting this sequential search to work in C. After I type the number for search the program crashes, heres my code:

void seqSearch ( int A [] )
{
int i , found = 0 , target;


printf("Enter Number to Query : ");
scanf ("%d" , target );

for ( i = 0 ; i < SIZE ; i ++ )
{
if ( target == A[i])
{
found = 1;
break;
}
}

if ( found == 1 )
{
printf("Your Number was found in Subscript %d.", i );
}
else
{
printf ("Your number was not found!");
}


PLEASE HELP!

You will need to post the rest of your code. This code appears fine, depending upon how A is passed to the function.
I guess there's one minor mistake leading up to the crash.
scanf ("%d" , target );
shoud be
scanf ("%d" , &target );
Topic archived. No new replies allowed.