Functions - Notes with explanation|NOTES-1|Predefined functions|Functions Simple Notes|

preview_player
Показать описание
This video explain the notes of the chapter Functions in C++. This NOTES-1 explains notes up to predefined functions. I tried to make it Simple and easy to understand.

Click here to download or read the pdf note:

-NOTE-

Concept of modular programming
A complex program can be divided modules. These modules are solved and integrated to build the complete software.
This approach is called Modular programming.
Modularization
The process of breaking large programs into smaller sub programs is called
modularization.
Merits of modular programming
a) Reduces the size of the program
b) Less chance of error occurrence
c) Reduces programming complexity
d) Improves reusability
Demerits of modular programming
a) Proper breaking down of the problem is a challenging task.
b) Each sub problem must be independent of others.
c) Should be careful about order of execution of modules.
Predefined functions
The functions that are already written, debugged, compiled and stored in header files are called Predefined functions or Built in Functions.
Parameters or arguments
return-value of the function.
Different predefined functions:
1. Console functions for character I/O
a). getchar()
b).putchar()
2. Stream functions for I/O operations
Input functions
a). get()
b). getline()
a). put()
b). write()
3. String functions(cstring)
i. strlen()
ii. strcpy()
iii. strcat()
iv. strcmp()
v. strcmpi()
4. Mathematical functions in C++( cmath)
1. abs()
fabs()
2. sqrt()
3. pow()
5. Character functions(cctype)
(1) isupper()
(2) islower()
(3) isalpha()
(4) isdigit()
(5) isalnum()
6) toupper()
7) tolower()
Рекомендации по теме
welcome to shbcf.ru