Talk About Network

Google


Register and Login
Nick
Password
Register create new account Sign up is FREE and you can post replies, new topics, bookmark posts and more!
Recover lost password


Programming > C > Re: Problems wi...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 4 of 4 Topic 26132 of 26977
Post > Topic >>

Re: Problems with a simple linear search

by Eric Sosman <esosman@[EMAIL PROTECTED] > May 9, 2008 at 11:41 AM

nembo kid wrote:
> I have an issue with a simple function that has to make a linear search 
> for a key into an array.
> 
> If the key is found in the array, the function it has to return 1 to the

> caller and pass array index through a out parameter.
> 
> The issue is that the out parameter is not being updated.
> 
> If I return the position to the caller (instead to use a out parameter) 
> all is ok.
> [...]

     This is Question 4.8 in the comp.lang.c Frequently
Asked Questions (FAQ) list, <http://www.c-faq.com/>.
 The
question's title in the FAQ doesn't seem at first blush to
have much to do with your problem, but trust me and read on.

-- 
Eric Sosman
esosman@[EMAIL PROTECTED]

 




 4 Posts in Topic:
Problems with a simple linear search
nembo kid <nembo@[EMAI  2008-05-09 17:31:14 
Re: Problems with a simple linear search
"Jim Langston"   2008-05-09 08:40:21 
Re: Problems with a simple linear search
nembo kid <nembo@[EMAI  2008-05-09 18:01:57 
Re: Problems with a simple linear search
Eric Sosman <esosman@[  2008-05-09 11:41:28 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
tan12V112 Sat Jul 26 3:50:22 CDT 2008.