Linear Search: C

preview_player
Показать описание

First ask the user to enter the number to be searched. Store it inside a variable called key.
Now start comparing key value with a[i] using a for loop. If the key is found in the array, then assign 1 to flag orelse flag will be 0.
Рекомендации по теме
Комментарии
Автор

awesome tutorial sir, keep it up, thanks a lot 👍👍🙂🙂

SmartProgramming
Автор

bro you give best program presentation.

malli.c
Автор

thank you. this video helps me so much

ihrifat
Автор

thank you so much, it is so simple to understand

sriramteja
Автор

hey, thanks a lot for all the tutorials...
I was wondering if the above program can be written without the use of flag....?? can u explain y we have to use flag.?? thanx again.

ashwinxxl
Автор

great tutorial Satish B can you tell me what is the function of function getch() at the end of this program???

bakarisaidchanoga
Автор

i will get good marks in my viva wid this

divyamr
Автор

Please share video on binary search...

gomaraikar
Автор

Bro why we r using flag y don't we print in that if successful using printf and unsuccessful using else printf reply plz

deadpool-
Автор

brother im from chile and this is very helpfull did you haven an email or skype to talk to you ? i really need your feedback

BrayatanMassacre
Автор

HEY Satish do u wanna colab on any new code Thanxx

omarfarooq