際際滷

際際滷Share a Scribd company logo
1. Library: It is a collection of files that your programs may use called header files. Header files
provide function prototypes, definitions of library functions, data types and constants.
2. Header files:
a. stdio.h: Defines types and macros for standard I/O package. Also defines I/O
predefined streams.
b. String.h: Declares several string manipulation and memory manipulation routines. All
functions starting with str and mem
c. Math.h: Declares prototypes for math functions and math error handlers. The routines
perform mathematical calculations and conversions.
d. Stdlib.h: Declares several commonly used routines like conversion routines,
search/sort routines and other miscellaneous things. Ex: free, labs, atof, atoi, atoll.
e. Iostream.h: Declares basic C++ streams I/O routines. Ex: open, close, get, write.
f. Iomanip.h: Declares C++ streams I/O manipulators and contains macros for creating
parameterised manipulators. Ex: dec, endl, ends, hex, oct.
3. Character functions:
a. Isalnum: Returns non zero if arg is letter or digit. Ex: if(isalnum(ch)) cout<<Alpha;
b. Isalpha: returns non zero if ch is an alphabet.
c. Isdigit: Returns non zero if ch is digit.
d. Islower: returns non zero if ch is a lowercase letter
e. Isupper: Returns non zero if ch is uppercase letter
f. Toupper: Returns uppercase equivalent of ch
g. Tolower: Returns lowercase equivalent of ch
4. String functions:
a. Strcat(str2, str1): Concatenates a copy of str2 to str1 and terminates str1 with a null.
b. Strcmp(str2,str1): Compares two strings and returns ve value if str1<str2 and
positive value if str1>str2
c. Strcpy(str1,str2): Copies contents of str2 to str1
d. Strlen(str): Returns length of null terminated string. Null is not counted.
5. Math functions:
a. Fabs(x): returns absolute value of floating point number
b. Modf(x,y): returns the remainder of x/y.
6. Random and Randomize functions: Two macros of stdlib.h having similar functioning as
rand() and srand()
a. Random: Generates a random number within range 0 to number  1.
b. Randomize: It initializes or seeds the random number generator with a random
number.
Ad

Recommended

Standard Library Functions
Standard Library Functions
Praveen M Jigajinni
6
6
satishbb
8
8
satishbb
An Introduction to the C++ Standard Library
An Introduction to the C++ Standard Library
Joyjit Choudhury
FSTREAM,ASSERT LIBRARY & CTYPE LIBRARY.
FSTREAM,ASSERT LIBRARY & CTYPE LIBRARY.
Meghaj Mallick
14 arrays
14 arrays
fyjordan9
List
List
Joyjit Choudhury
Strings and pointers
Strings and pointers
Gurpreet Singh Sond
Algorithms: I
Algorithms: I
Joyjit Choudhury
Array, string and pointer
Array, string and pointer
Nishant Munjal
Array
Array
Hajar
Dynamic Programming Code-Optimization Algorithm (Compiler Design)
Dynamic Programming Code-Optimization Algorithm (Compiler Design)
Dhrumil Panchal
Priority Queue
Priority Queue
Joyjit Choudhury
Stack & Queue
Stack & Queue
Joyjit Choudhury
Procedures And Functions in Matlab
Procedures And Functions in Matlab
DataminingTools Inc
Data structure using c module 1
Data structure using c module 1
smruti sarangi
2015.3.12 the root of lisp
2015.3.12 the root of lisp
Chung-Hsiang Ofa Hsueh
Array Of Pointers
Array Of Pointers
Sharad Dubey
1.Array and linklst definition
1.Array and linklst definition
balavigneshwari
02 Arrays And Memory Mapping
02 Arrays And Memory Mapping
Qundeel
Algorithms: II
Algorithms: II
Joyjit Choudhury
STL in C++
STL in C++
Surya Prakash Sahu
Associativity of operators
Associativity of operators
Ajay Chimmani
Scala collections wizardry - Scalape単o
Scala collections wizardry - Scalape単o
Sagie Davidovich
Lecture 1 mte 407
Lecture 1 mte 407
rumanatasnim415
Lecture 1 mte 407
Lecture 1 mte 407
rumanatasnim415
Stl Containers
Stl Containers
ppd1961
Day 5a iteration and functions if().pptx
Day 5a iteration and functions if().pptx
Adrien Melquiond
Type header file in c++ and its function
Type header file in c++ and its function
Frankie Jones
Header file.pptx
Header file.pptx
ALANWALKERPIANO

More Related Content

What's hot (20)

Algorithms: I
Algorithms: I
Joyjit Choudhury
Array, string and pointer
Array, string and pointer
Nishant Munjal
Array
Array
Hajar
Dynamic Programming Code-Optimization Algorithm (Compiler Design)
Dynamic Programming Code-Optimization Algorithm (Compiler Design)
Dhrumil Panchal
Priority Queue
Priority Queue
Joyjit Choudhury
Stack & Queue
Stack & Queue
Joyjit Choudhury
Procedures And Functions in Matlab
Procedures And Functions in Matlab
DataminingTools Inc
Data structure using c module 1
Data structure using c module 1
smruti sarangi
2015.3.12 the root of lisp
2015.3.12 the root of lisp
Chung-Hsiang Ofa Hsueh
Array Of Pointers
Array Of Pointers
Sharad Dubey
1.Array and linklst definition
1.Array and linklst definition
balavigneshwari
02 Arrays And Memory Mapping
02 Arrays And Memory Mapping
Qundeel
Algorithms: II
Algorithms: II
Joyjit Choudhury
STL in C++
STL in C++
Surya Prakash Sahu
Associativity of operators
Associativity of operators
Ajay Chimmani
Scala collections wizardry - Scalape単o
Scala collections wizardry - Scalape単o
Sagie Davidovich
Lecture 1 mte 407
Lecture 1 mte 407
rumanatasnim415
Lecture 1 mte 407
Lecture 1 mte 407
rumanatasnim415
Stl Containers
Stl Containers
ppd1961
Day 5a iteration and functions if().pptx
Day 5a iteration and functions if().pptx
Adrien Melquiond
Array, string and pointer
Array, string and pointer
Nishant Munjal
Array
Array
Hajar
Dynamic Programming Code-Optimization Algorithm (Compiler Design)
Dynamic Programming Code-Optimization Algorithm (Compiler Design)
Dhrumil Panchal
Procedures And Functions in Matlab
Procedures And Functions in Matlab
DataminingTools Inc
Data structure using c module 1
Data structure using c module 1
smruti sarangi
Array Of Pointers
Array Of Pointers
Sharad Dubey
1.Array and linklst definition
1.Array and linklst definition
balavigneshwari
02 Arrays And Memory Mapping
02 Arrays And Memory Mapping
Qundeel
Associativity of operators
Associativity of operators
Ajay Chimmani
Scala collections wizardry - Scalape単o
Scala collections wizardry - Scalape単o
Sagie Davidovich
Stl Containers
Stl Containers
ppd1961
Day 5a iteration and functions if().pptx
Day 5a iteration and functions if().pptx
Adrien Melquiond

Similar to Functions class11 cbse_notes (20)

Type header file in c++ and its function
Type header file in c++ and its function
Frankie Jones
Header file.pptx
Header file.pptx
ALANWALKERPIANO
C++primer
C++primer
leonlongli
File handling in c++
File handling in c++
Daniel Nyagechi
C_and_C++_notes.pdf
C_and_C++_notes.pdf
Tigabu Yaya
Library functions in c++
Library functions in c++
Neeru Mittal
Cpprm
Cpprm
Shawne Lee
2-Functions.pdf
2-Functions.pdf
YekoyeTigabuYeko
7 Data File Handling
7 Data File Handling
Praveen M Jigajinni
2.overview of c++ ________lecture2
2.overview of c++ ________lecture2
Warui Maina
CBSE XII COMPUTER SCIENCE STUDY MATERIAL BY KVS
CBSE XII COMPUTER SCIENCE STUDY MATERIAL BY KVS
Gautham Rajesh
Chapter 10 Library Function
Chapter 10 Library Function
Deepak Singh
Data file handling in c++
Data file handling in c++
Vineeta Garg
C
C
MalathiNagarajan20
Programming in C
Programming in C
nagathangaraj
Chtp415
Chtp415
giovanniveitch
INTRODUCTION TO C PROGRAMMING in basic c language
INTRODUCTION TO C PROGRAMMING in basic c language
GOKULKANNANMMECLECTC
Managing console of I/o operations & working with files
Managing console of I/o operations & working with files
lalithambiga kamaraj
Chapter 1 (2) array and structure r.pptx
Chapter 1 (2) array and structure r.pptx
abenezertekalign118
C standard library functions
C standard library functions
Vaishnavee Sharma
Type header file in c++ and its function
Type header file in c++ and its function
Frankie Jones
C_and_C++_notes.pdf
C_and_C++_notes.pdf
Tigabu Yaya
Library functions in c++
Library functions in c++
Neeru Mittal
2.overview of c++ ________lecture2
2.overview of c++ ________lecture2
Warui Maina
CBSE XII COMPUTER SCIENCE STUDY MATERIAL BY KVS
CBSE XII COMPUTER SCIENCE STUDY MATERIAL BY KVS
Gautham Rajesh
Chapter 10 Library Function
Chapter 10 Library Function
Deepak Singh
Data file handling in c++
Data file handling in c++
Vineeta Garg
INTRODUCTION TO C PROGRAMMING in basic c language
INTRODUCTION TO C PROGRAMMING in basic c language
GOKULKANNANMMECLECTC
Managing console of I/o operations & working with files
Managing console of I/o operations & working with files
lalithambiga kamaraj
Chapter 1 (2) array and structure r.pptx
Chapter 1 (2) array and structure r.pptx
abenezertekalign118
C standard library functions
C standard library functions
Vaishnavee Sharma
Ad

Recently uploaded (20)

Pests of Maize: An comprehensive overview.pptx
Pests of Maize: An comprehensive overview.pptx
Arshad Shaikh
ENGLISH_Q1_W1 PowerPoint grade 3 quarter 1 week 1
ENGLISH_Q1_W1 PowerPoint grade 3 quarter 1 week 1
jutaydeonne
GREAT QUIZ EXCHANGE 2025 - GENERAL QUIZ.pptx
GREAT QUIZ EXCHANGE 2025 - GENERAL QUIZ.pptx
Ronisha Das
Photo chemistry Power Point Presentation
Photo chemistry Power Point Presentation
mprpgcwa2024
A Visual Introduction to the Prophet Jeremiah
A Visual Introduction to the Prophet Jeremiah
Steve Thomason
Intellectual Property Right (Jurisprudence).pptx
Intellectual Property Right (Jurisprudence).pptx
Vishal Chanalia
How to Customize Quotation Layouts in Odoo 18
How to Customize Quotation Layouts in Odoo 18
Celine George
THE PSYCHOANALYTIC OF THE BLACK CAT BY EDGAR ALLAN POE (1).pdf
THE PSYCHOANALYTIC OF THE BLACK CAT BY EDGAR ALLAN POE (1).pdf
nabilahk908
YSPH VMOC Special Report - Measles Outbreak Southwest US 6-14-2025.pptx
YSPH VMOC Special Report - Measles Outbreak Southwest US 6-14-2025.pptx
Yale School of Public Health - The Virtual Medical Operations Center (VMOC)
INDUCTIVE EFFECT slide for first prof pharamacy students
INDUCTIVE EFFECT slide for first prof pharamacy students
SHABNAM FAIZ
Chalukyas of Gujrat, Solanki Dynasty NEP.pptx
Chalukyas of Gujrat, Solanki Dynasty NEP.pptx
Dr. Ravi Shankar Arya Mahila P. G. College, Banaras Hindu University, Varanasi, India.
How payment terms are configured in Odoo 18
How payment terms are configured in Odoo 18
Celine George
June 2025 Progress Update With Board Call_In process.pptx
June 2025 Progress Update With Board Call_In process.pptx
International Society of Service Innovation Professionals
Great Governors' Send-Off Quiz 2025 Prelims IIT KGP
Great Governors' Send-Off Quiz 2025 Prelims IIT KGP
IIT Kharagpur Quiz Club
Aprendendo Arquitetura Framework Salesforce - Dia 02
Aprendendo Arquitetura Framework Salesforce - Dia 02
Mauricio Alexandre Silva
VCE Literature Section A Exam Response Guide
VCE Literature Section A Exam Response Guide
jpinnuck
This is why students from these 44 institutions have not received National Se...
This is why students from these 44 institutions have not received National Se...
Kweku Zurek
SCHIZOPHRENIA OTHER PSYCHOTIC DISORDER LIKE Persistent delusion/Capgras syndr...
SCHIZOPHRENIA OTHER PSYCHOTIC DISORDER LIKE Persistent delusion/Capgras syndr...
parmarjuli1412
Tanja Vujicic - PISA for Schools contact Info
Tanja Vujicic - PISA for Schools contact Info
EduSkills OECD
The Man In The Back Exceptional Delaware.pdf
The Man In The Back Exceptional Delaware.pdf
dennisongomezk
Pests of Maize: An comprehensive overview.pptx
Pests of Maize: An comprehensive overview.pptx
Arshad Shaikh
ENGLISH_Q1_W1 PowerPoint grade 3 quarter 1 week 1
ENGLISH_Q1_W1 PowerPoint grade 3 quarter 1 week 1
jutaydeonne
GREAT QUIZ EXCHANGE 2025 - GENERAL QUIZ.pptx
GREAT QUIZ EXCHANGE 2025 - GENERAL QUIZ.pptx
Ronisha Das
Photo chemistry Power Point Presentation
Photo chemistry Power Point Presentation
mprpgcwa2024
A Visual Introduction to the Prophet Jeremiah
A Visual Introduction to the Prophet Jeremiah
Steve Thomason
Intellectual Property Right (Jurisprudence).pptx
Intellectual Property Right (Jurisprudence).pptx
Vishal Chanalia
How to Customize Quotation Layouts in Odoo 18
How to Customize Quotation Layouts in Odoo 18
Celine George
THE PSYCHOANALYTIC OF THE BLACK CAT BY EDGAR ALLAN POE (1).pdf
THE PSYCHOANALYTIC OF THE BLACK CAT BY EDGAR ALLAN POE (1).pdf
nabilahk908
INDUCTIVE EFFECT slide for first prof pharamacy students
INDUCTIVE EFFECT slide for first prof pharamacy students
SHABNAM FAIZ
How payment terms are configured in Odoo 18
How payment terms are configured in Odoo 18
Celine George
Great Governors' Send-Off Quiz 2025 Prelims IIT KGP
Great Governors' Send-Off Quiz 2025 Prelims IIT KGP
IIT Kharagpur Quiz Club
Aprendendo Arquitetura Framework Salesforce - Dia 02
Aprendendo Arquitetura Framework Salesforce - Dia 02
Mauricio Alexandre Silva
VCE Literature Section A Exam Response Guide
VCE Literature Section A Exam Response Guide
jpinnuck
This is why students from these 44 institutions have not received National Se...
This is why students from these 44 institutions have not received National Se...
Kweku Zurek
SCHIZOPHRENIA OTHER PSYCHOTIC DISORDER LIKE Persistent delusion/Capgras syndr...
SCHIZOPHRENIA OTHER PSYCHOTIC DISORDER LIKE Persistent delusion/Capgras syndr...
parmarjuli1412
Tanja Vujicic - PISA for Schools contact Info
Tanja Vujicic - PISA for Schools contact Info
EduSkills OECD
The Man In The Back Exceptional Delaware.pdf
The Man In The Back Exceptional Delaware.pdf
dennisongomezk
Ad

Functions class11 cbse_notes

  • 1. 1. Library: It is a collection of files that your programs may use called header files. Header files provide function prototypes, definitions of library functions, data types and constants. 2. Header files: a. stdio.h: Defines types and macros for standard I/O package. Also defines I/O predefined streams. b. String.h: Declares several string manipulation and memory manipulation routines. All functions starting with str and mem c. Math.h: Declares prototypes for math functions and math error handlers. The routines perform mathematical calculations and conversions. d. Stdlib.h: Declares several commonly used routines like conversion routines, search/sort routines and other miscellaneous things. Ex: free, labs, atof, atoi, atoll. e. Iostream.h: Declares basic C++ streams I/O routines. Ex: open, close, get, write. f. Iomanip.h: Declares C++ streams I/O manipulators and contains macros for creating parameterised manipulators. Ex: dec, endl, ends, hex, oct. 3. Character functions: a. Isalnum: Returns non zero if arg is letter or digit. Ex: if(isalnum(ch)) cout<<Alpha; b. Isalpha: returns non zero if ch is an alphabet. c. Isdigit: Returns non zero if ch is digit. d. Islower: returns non zero if ch is a lowercase letter e. Isupper: Returns non zero if ch is uppercase letter f. Toupper: Returns uppercase equivalent of ch g. Tolower: Returns lowercase equivalent of ch 4. String functions: a. Strcat(str2, str1): Concatenates a copy of str2 to str1 and terminates str1 with a null. b. Strcmp(str2,str1): Compares two strings and returns ve value if str1<str2 and positive value if str1>str2 c. Strcpy(str1,str2): Copies contents of str2 to str1 d. Strlen(str): Returns length of null terminated string. Null is not counted. 5. Math functions: a. Fabs(x): returns absolute value of floating point number b. Modf(x,y): returns the remainder of x/y. 6. Random and Randomize functions: Two macros of stdlib.h having similar functioning as rand() and srand() a. Random: Generates a random number within range 0 to number 1. b. Randomize: It initializes or seeds the random number generator with a random number.