main.
c Output
/tmp/AZkdUWSUqK.o
Enter number of elements in array
5
Enter 5 integer(s)
23
45
75
Enter a number to search
5
5 is present at location 4.
The elapsed time is 0.000031 seconds
/tmp/AZkdUWSUqK.o
Enter number of elements in array
4
Enter 4 integer (s)
2
45
3
6
Enter a number to search
45
45 is present at lcation 2.
The elapsed time is 0.000041 seconds
/ tmp/AZkdUWSUqk.o
Enter number of elements in array
4
Enter 4 integer (s)
6
8
9
23
Enter a number to search
9
9 is present at location 3.
The elapsed time is 0.000028 seconds
main.c Output
/tmp/Ymfr4KGARA.o
Enter size of array:5
Enter array element (ascending order)
24
45
67
68
80
Enter the element to search:79
Element not found
The elapsed time is 0.000069 seconds
/tmp/Ymfr4KGARA. o
Enter size of array:7
Enter array element (ascending order)
78
100
189
190
200
355
500
Enter the element to search:200
Element found at position 5
The elapsed time is 0.000038 seconds
main.c Output
/tmp/Ymfr4KGARA.o
Enter size of array:6
Enter array element (ascending order)
9
15
20
25
Enter the element to search:9
Element found at position 3
The elapsed time is 0.000025 seconds
main.c Output
/ tmp/Du8powXwcu.o
Enter some text
time complexity
Enter a string to find
Com
Found at location: 6
The elapsed time is 0.000021 seconds
Programiz C Course
COnline Compiler
main.c Output
/tmp/Du8powXwcu.o
Enter Some text
pattern search
Enter a string to find
sea
Found at location: 9
The elapsed time is 0.000027 seconds
main.c Output
/tmp/Du8powXwcu.o
Enter some text
algorithm
Enter a string to find
ri
Found at location: 5
The elapsed time is 0.000031 seconds
main.c Output
/tmp/pkrgsGiGWI. o
Enter number of elements
5
Enter 5 integers
4 79 15 29
Sorted list in ascending order:
4
7
15
29
The elapsed time is 0.000031 seconds
main.c Output
/tmp/pkrgsGi GWI.o
Enter number of elements
6
Enter 6 integers
12 3 6 45 30 27
Sorted list in ascending order:
3
6
12
27
30
45
The elapsed time is 0.000045 seconds
/tmp/pkrgsGiGWI.o
Enter number of elements
7
Enter 7 integers
89 56 78 65 23 9 10
Sorted list in ascending order:
9
10
23
56
65
78
89
The elapsed time is 0.000035 seconds
Programiz CCourse
COnline Compiler
main.c Output
/tmp/AKr4h6Z1vx.o
Sorted array is
15 6 9 10 12
The elapsed time is 0.000028 seconds
main.c Output
/tmp/AKr4h6Z1 vx.o
Sorted array is
1 10 12 15 18 20
The elapsed time is 0.000020 seconds
/tmp/AKr4h6Z1 vx.o
Sorted array is
22 30 67 78 97 100
The elapsed time is 0.000079 seconds