+ 5

What is difference between library and function ?

C++

3rd May 2019, 10:41 PM
Pritee
6 ответов
+ 8
It's a bit like asking what is the difference between your school library and a book.
4th May 2019, 12:15 AM
Sonic
Sonic - avatar
+ 7
Hey there, A library is a way of including multiple functions in a small package. For example iostream is a tiny library in C++ that contains many functions
3rd May 2019, 10:51 PM
Edwin Pratt
Edwin Pratt - avatar
+ 5
A function is a block of reusable code that is used to perform a single operation and a library is a set of related functions that help you perform some larger tasks, e.g. graphic processing, cryptographic encryption, etc.
4th May 2019, 9:58 AM
Mingyar Acosta
Mingyar Acosta - avatar
+ 3
Thanks
3rd May 2019, 10:56 PM
Pritee
+ 3
Ok
4th May 2019, 4:22 AM
Pritee
+ 3
Thanks
4th May 2019, 1:06 PM
Pritee