Message from C, C++ talks

July 2019

— #ot

— Https://t.me/joinchat/Ci0Cak-BPuxaHdcbjab4QQ

— Or like java

— Hi I have a qn about array program

— 

That after the array numbers as ascending then I want to say whether the given search number is middle or lower than array or greater how to make this

— Learn english first

— You should be admin

— Epic.

— U can't get what i try to say that 🤪

— I'm saying simply for u

— You're not talking English there

— 34 44 55 63 71
This is sorted ascending array I have for ex
Now I'm searching 55 then it should say it is present in mid
Or I'm search as 44 it should say as lower

Message permanent page

— So you have to say if a number is in your first or second half

— What's your question?

— Iterate through the array, save the index of 55 and iterate again, if 44 is lower return lower if not return greater

Message permanent page