hey i tried to make a program to find an item in an integer array using binary search technique n by iteration with the help of functions...but i am getting errors....so plz help me out..
vandna 0 Newbie Poster
Recommended Answers
Jump to PostPlease post your code and the errors.
Jump to PostYour program is pretty close, you just need a few changes, such as
int main()
, use pointer to array in scanf() and flush out the '\n' charactersint main() { int array[50],i,ele,n; char a; //clrscr(); printf("the list should be sorted in ascending order\n"); printf("enter the …
All 6 Replies
Tom Gunn 1,164 Practically a Master Poster
Grn Xtrm 84 Posting Pro in Training
vandna 0 Newbie Poster
Ancient Dragon 5,243 Achieved Level 70 Team Colleague Featured Poster
vandna 0 Newbie Poster
Grn Xtrm 84 Posting Pro in Training
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.