Skip to content

Technology Articles Blog

Technology Articles Blog
Menu
  • Business and Management
    • Finance Management
    • Global Strategic Positioning
    • International Business
    • Money Management
    • Organizational Change
    • Process Improvement
    • Product Management
    • Project Management
    • Reengineering
    • Strategic Alliance
    • Strategic Planning
  • Information Technology
    • Advanced Mathematics
    • Data Communications
    • E-Governance
    • Electrical and Electronics
    • Enterprise Architecture
    • Hi-Tech Workers
    • Information Architecture
    • Information Management
    • Internet Usage
    • Internetworking
    • Knowledge Management
    • Legal Issues in Information Management
    • Mechanical Engineering and Technology
    • Patents
  • Software Development
    • Agile development
    • Architecture
    • Copyright Issues
    • DevOps
      • Containerization
    • Database Technologies
    • Frameworks
      • .NET
        • .NETCore
        • .NETFramework
    • Iterative Software development
    • Object Oriented Modeling and Design
    • System Analysis and Design
    • User Experience
    • Service Oriented Architecture
  • Programming
    • Ada
    • C
    • C#
    • C++
    • Perl
    • Numerical Analysis
  • Cloud Computing
    • Containerization
      • Container Orchestration
    • Azure
    • Google Cloud
    • Kubernetes
HomeSoftware DevelopmentProgrammingCRecursive C program for Binary search

Recursive C program for Binary search

February 8, 2020

Below is an example Recursive C program to perform Binary –


int binsearch(int low, int high, in a[], X){

         int mid;
         if(low > high){
            return(-1);
         }
         mid = (low + high) / 2;
         return(X == a[mid] ? mid : X < a [mid] ? binsearch(low, mid-1, a[], X) : binsearch (mid+1,high,a[],X))


}

Related Posts

Linked-representation-of-Graph

Linked representation of Graphs in C

UML example

Data warehousing – IMPORTANCE OF DATA WAREHOUSING IN IT

About The Author

admin

More Articles ..

Advanced Mathematics All Articles Application Architecture Architecture ASP.NET Business and Management C C# C++ Cloud Computing Copyright Issues Database Technologies Data Communications Data warehousing E-Governance Electrical and Electronics Enterprise Architecture Finance Management Hi-Tech Workers Information Architecture Information Management Information Technology International Business Internet Usage Internetworking Knowledge Management Legal Issues in Information Management Mechanical Engineering and Technology Money Management Numerical Analysis Object Oriented Modeling and Design Online bookstore Organizational Change Patents Process Improvement Programming Project Management Reengineering Server Architecture Service Oriented Architecture Software Development Strategic Planning System Analysis and Design Technology Home User Experience

Recent Articles

  • Container Orchestration with Kubernetes
  • Deploying a Cloud native .NetCore app on Kubernetes Cluster
  • Towards Blazor
  • Server and Client rendered Web application development frameworks
  • Building Razor Page Web app. in .NetCore
  • Containerization with Docker
  • Containerization
  • Importance of Software Architecture
  • DevOps
  • Azure Functions and Serverless Computing
  • Azure Containers and Kubernetes for creating microservice-based applications
  • Azure VM Service
  • Azure Web App. and Azure SQL
  • Azure in a Nutshell
  • Advanced Function and Operator Overloading in C++

Categories

© 2023 Technology Articles Blog | WordPress Theme by Superb WordPress Themes
Back to Top ↑