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