answersLogoWhite

0

If the data is sorted and every element is directly accessible, then you can perform binary search (see built-in function bsearch), otherwise you have to do linear search (which is slower).

User Avatar

Wiki User

17y ago

What else can I help you with?

Continue Learning about Engineering

Create a spiral in C programming?

create spiral in c programming?


Disadvantages of c plus plus over c?

There are no disadvantages as such since everything you can do in C you can also do in C++, with relatively minor alterations to conform with C++'s stricter type safety. C++ essentially inherits all that is good about C, and attempts to fix all that is bad without overly compromising backward compatibility, as well as adding object-oriented programming support, which constitutes the major difference between C and C++.


What is a C compiler as used in C programming?

In C programming, C compiler is user to translate C source into C object module.


Name of object oriented programming language?

C++ is the name of a programming language.


What are the advantages and disadvantages of C language?

Advantages of C languageSpeed of the resulting application. C source code can be optimized much more than higher level languages because the language set is relatively small and very efficient.That leads to a second advantage that C has which is its application in Firmware programming (hardware). That is due to its ability to use/work with assembly and communicate directly with controllers, processors and other devices.C Programming language is very easier to learn. The main advantages of C language is that there is not much vocabulary to learn, and that the programmer can arrange for the program is very fast.Disadvantages of C LanguageC does not have OOPS feature that's why C++ is developed. If you know any other modern programming language then you already know its disadvantages.There is no runtime checking in C language.There is no strict type checking (for example: we can pass an integer value for the floating data type).C doesn't have the concept of namespace.C doesn't have the concept of constructors and destructors.

Related Questions

What is the Advantages and disadvantages of server side includes?

c


What do you mean by non primitive data structure in C programming?

What do you mean by searching in data structure in C.?


What are the Advantages of c over c plus plus?

There are no advantages of C over C++ as such. Everything you can do in C you can also do in C++. However, by taking advantage of C++ object oriented programming, generic programming and template meta programming as well as C-style coding, you can produce more efficient machine code far more easily and more quickly than with C alone.


What are the advantages and disadvantages of using a DVD storage device?

c


What is dynamic programming in computer?

It's a type system. Basically, what it means is that you don't need to specify a type for a variable. Let me give you two examples from two well-used programming languages: int x = 0; and x = 0; In the first example, which if you hadn't guessed it by now is C or C++ or a derivative, whereas the second is from Python, a dynamically-typed language. Both have their advantages and disadvantages.


What are the key features and advantages of using C in software development?

C is a versatile programming language with key features like strong typing, object-oriented programming, and memory management. Its advantages include platform independence, easy integration with other Microsoft technologies, and a large community for support and resources.


What are some of the benefits of programming in C Sharp?

There are many advantages to C sharp programming like: Not having to define the Headers (.h), Classes can be defined within classes, classes and functions can be defined in random order unlike C and C++, Classes and functions don't need to be declared in the program.


What is c and c in computer programming?

C and C++ are both high-level programming languages.


What are the advantages and disadvantages of HVAC?

Advantage=no sweating Disadvantage=sweating


Create a spiral in C programming?

create spiral in c programming?


Disadvantages of c plus plus over c?

There are no disadvantages as such since everything you can do in C you can also do in C++, with relatively minor alterations to conform with C++'s stricter type safety. C++ essentially inherits all that is good about C, and attempts to fix all that is bad without overly compromising backward compatibility, as well as adding object-oriented programming support, which constitutes the major difference between C and C++.


Are there any advantages or disadvantages in the method analysis of vitamin C?

Yes, there are both advantages and disadvantages to the methods used for analyzing vitamin C. Advantages include high accuracy and sensitivity in detecting vitamin C concentrations, which can be achieved through techniques like high-performance liquid chromatography (HPLC). However, disadvantages may include the need for expensive equipment, the requirement of skilled personnel for complex methods, and potential interference from other substances in food matrices that can complicate results. Additionally, some methods may involve lengthy sample preparation processes.