Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion linear-search.c
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
#include <stdio.h>
void display()
void display(int a[], int n)
{
printf("the array is %d",a);
// display code goes here
}
int linearSearch()
Expand All @@ -11,6 +12,7 @@ int main()
{
int arr[] = {5, 3, 7, 9, 10, 12, 7, 2, 4};
// main program
display(arr,9)

return 0;
}