Question

What is a library function?  

What is a library function?  

Homework Answers

Answer #1

Library functions are predefined inbuilt functions which are grouped together and kept in a common library file. To use these functions in our program we have to import/include the specifc library in our code. Each library function performs specific operation. Most probabaly these Library functions are coded by the people who designed and created compilers or interpreters.

for eg in C : stdio.h is the header file in which Input/Output functions ( printf() ,scanf() ) are declared. We can even rewrite the library functions as our need. But it is not preferrable since most of these functions are universally accepted and followed for many years.

Other eg: math.h for all math related functions like pow() , string.h for all string related functions and so on ....

Know the answer?
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for?
Ask your own homework help question
Similar Questions
Under what circumstances would a genomic DNA library be preferable to a cDNA library? What about...
Under what circumstances would a genomic DNA library be preferable to a cDNA library? What about the reverse (when might you want a cDNA library)?
**No math library function is allowed in this assignment. You HAVE TO use loop structure to...
**No math library function is allowed in this assignment. You HAVE TO use loop structure to do the calculation** Write a C function named integerPower with the following prototype:   double integerPower(int base, int exponent); This function shall compute and return the value of base exponent The main function shall ask the user to enter the values for the two parameters (based and exponent) and then pass them to the function. The main function shall then display the returned value from...
(using Python Graphics library) im trying to create a function that has a circle bouncing left...
(using Python Graphics library) im trying to create a function that has a circle bouncing left to right on a window and when the circle is clicked on, it stops moving horizontally and begins moving up and down on the window.
Scenario: University Library System Requirements The library contains books and journals as library material. It may...
Scenario: University Library System Requirements The library contains books and journals as library material. It may have several copies of a given book or journal. All library material has an id #, a title and one or more authors. Further the library categorizes all library material as reference-only items or regular items. Referenceonly items can be loaned for 2hrs and can’t be removed from the library. Regular items may be borrowed by any library member for three weeks. Only members...
Please write code in c++ using iostream library. Write a function that have to copy one...
Please write code in c++ using iostream library. Write a function that have to copy one char array to other avoiding any not-letter symbols, program have to use pointer. Input: First line contains sequence of chars (size is not more that 100). 1w[a3ter11 output: water
You may notice that the function strchr in the <cstring> library searches for a character within...
You may notice that the function strchr in the <cstring> library searches for a character within a string, and returns the memory address (pointer) to where that character first occurs. 1.) Write your own version of the strchr function, int findchr( char text[ ], char target) , which returns the index of the first occurrance of the character target if it occurs within the string text. If target does not occur within the string, a -1 is to be returned....
Historically, the probability that a library book will be returned at the university library in one...
Historically, the probability that a library book will be returned at the university library in one week is .40. A random sample of 10 books is taken in one week. a. What is the probability that 8 books will be returned? b. Assuming this result is observed, what conclusion could the head librarian make about the historical rate of return? I need to enter into Minitab
The library states that 90% of books taken out of the library are returned before their...
The library states that 90% of books taken out of the library are returned before their due date. In a sample of 61 books, what is the probability that less than 80% were returned before their due date? a) -2.60 b) 0.0047 c) 0.9953 d 0.1000
Suppose you can use a library that contains two familiar sorting functions: BUBBLESORT(A) and MERGESORT(A) Both...
Suppose you can use a library that contains two familiar sorting functions: BUBBLESORT(A) and MERGESORT(A) Both functions take as input an array A of length n and sort it. Their running times are O(n2) and O(n log n) respectively. The library also contains another sorting function, with the following pseudocode: - function STRANGESORT(A) - if (length(A)1000) then - return BUBBLESORT(A) - else - return MERGESORT(A) What is the worst-case running time of STRANGESORT? Please justify your answer.
Suppose the probability that a library patron checks out a love book is 0.08. What is...
Suppose the probability that a library patron checks out a love book is 0.08. What is the probability that 3 of the next 12 library patrons will sign out a love book? = 0.0532 What is the probability that at least one patron will sign out a love book? = ????????? The answer is NOT 0.5656, 0.6323, 0.08 What is the probability that none of the next 10 patrons sign out a love book? = 0.4344
ADVERTISEMENT
Need Online Homework Help?

Get Answers For Free
Most questions answered within 1 hours.

Ask a Question
ADVERTISEMENT
Active Questions
  • How can you use Bayes’ theorem in light of new information? In Bayes’ theorem, how does...
    asked 2 minutes ago
  • Which of the following is not one of the four states of a working file? Unchanged,...
    asked 5 minutes ago
  • Assume we have CPU instructions that look like this: load register, address save register, address Where...
    asked 18 minutes ago
  • What is the difference between the following two declarations? char array[] = “Hello World”; char *array...
    asked 34 minutes ago
  • Discuss knowledge and understanding gleaned from The Least Dangerous Assumption and Strategies for Presuming Competence. How...
    asked 34 minutes ago
  • Exercise 13-20 (LO13-3) The owner of Maumee Ford-Volvo wants to study the relationship between the age...
    asked 36 minutes ago
  • Scenario The Department of Administrative Services (DAS) provides a number of services to other departments in...
    asked 44 minutes ago
  • Linear Regressions The number of newly reported crime cases in a county in New York State...
    asked 49 minutes ago
  • Specialty courts have been developed for various categories of crimes and offenders (e.g., mental health, substance...
    asked 53 minutes ago
  • An air-track cart with mass m=0.40kg and speed v0=1.2m/s approaches two other carts that are at...
    asked 53 minutes ago
  • Write a program in C# that reverses a collection and removes elements that are divisible by...
    asked 56 minutes ago
  • A gas pipeline with the thickness of 4mm is to be joint together by using welding...
    asked 1 hour ago