Skip to content

Update linear_search.c#1566

Open
kharajch wants to merge 1 commit intoTheAlgorithms:masterfrom
kharajch:patch-2
Open

Update linear_search.c#1566
kharajch wants to merge 1 commit intoTheAlgorithms:masterfrom
kharajch:patch-2

Conversation

@kharajch
Copy link
Copy Markdown

@kharajch kharajch commented Mar 27, 2026

Description of Change

  1. If The Element Is Found - linearsearch() function will return the index of that element which will later get printed out through the main() function.

  2. If The Element Is Not Found - linearsearch() function will return 0.

References

#1544

Checklist

  • Added description of change
  • Added file name matches File name guidelines
  • Added tests and example, test must pass
  • Relevant documentation/comments is changed or added
  • PR title follows semantic commit guidelines
  • Search previous suggestions before making a new one, as yours may be a duplicate.
  • I acknowledge that all my contributions will be made under the project's license.

Notes: Issue Resolved Successfully

1. If The Element Is Found - linearsearch() function will return the index of that element which will later get printed out through the main() function.

2. If The Element Is Not Found - linearsearch() function will return 0.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant