Use app×
Join Bloom Tuition
One on One Online Tuition
JEE MAIN 2025 Foundation Course
NEET 2025 Foundation Course
CLASS 12 FOUNDATION COURSE
CLASS 10 FOUNDATION COURSE
CLASS 9 FOUNDATION COURSE
CLASS 8 FOUNDATION COURSE
+1 vote
348 views
in Functions by (30.4k points)
closed by

Short notes about character functions and string functions

1 Answer

+2 votes
by (30.5k points)
selected by
 
Best answer

a. Character functions: 

1. isalnum(): It is used to check whether a character is alphabet or digit. It returns a non zero value if it is an alphabet or digit otherwise it returns zero. 

2. isalpha(): It is used to check whether a character is alphabet or not. It returns a non zero value if it is an alphabet otherwise it returns zero. 

3. isdigit(): It is used to check whether a character is digit or not. It returns a non zero value if it is digit otherwise it returns zero. 

4. islower(): It is used to check whether a character is lower case alphabet or not. It returns a non zero value if it is a lower case alphabet otherwise it returns zero. 

5. isupper(): It is used to check whether a character is upper case alphabet or not. It returns a non zero value if it is an upper case alphabet otherwise it returns zero. 

6. tolower(): It is used to convert the alphabet into lowercase. 

7. toupper(): It is used to convert the alphabet into upper case. 

b. String functions: 

1. strcpy(): This function is used to copy one string into another. 

2. strcat(): This function is used to concatenate(join) second string into first string.

3. strlen(): This function is used to find the length of a string. 

4. strcmp(): This function is used to compare 2 strings. If the first string is less than second string then it returns a negative value. If the first string is equal to the second string then it returns a value zero and if the first string is greater than the second string then it returns a positive value.

Welcome to Sarthaks eConnect: A unique platform where students can interact with teachers/experts/students to get solutions to their queries. Students (upto class 10+2) preparing for All Government Exams, CBSE Board Exam, ICSE Board Exam, State Board Exam, JEE (Mains+Advance) and NEET can ask questions from any subject and get quick answers by subject teachers/ experts/mentors/students.

Categories

...