Character Arrays: (using built in functions from string.lib)
1.
Read your name into character array and display.
2.
Read a sentence into character array and
display.
3.
Read a string and display its length using
strlen().
4.
Read a string and display in uppercase using
strupr()
5.
Read a string and display in lowercase using
strlwr()
6.
Read a string and display in reverse using
strrev()
7.
Copy your name into character array name[] and
display using strcpy()
8.
Read 2 names into character array name1[] and
name2[] and interchange using strcpy()
9.
Read your first name into character array
name1[] and concat your last name into name2[] and display using strcat()
10.
Read a string and check the given string in
palindrome or not using strrev() and strdup()
String manipulations (without using loops)
11.
Read a string and display letters in it.
12.
Read a string and display the count of letters.
13.
Read a string and display the count of small
letters.
14.
Read a string and display the count of vowels.
15.
Read a string and display letters in uppercase.
16.
Read a string and display letters in lower case.
17.
Read a string and display the letters in
opposite case.
18.
Read a string display the count of words in it.
19.
Read a string and display the string in initcap.
20.
Read a string and display in reverse order.
21.
Read a string and arrange the letters in
ascending order.
22.
Read a string and arrange the letters in
descending order.
23.
Read a string and eliminate the duplicates in
it.
24.
Read a string and search for a letter in it.
25.
Read a string and search for a word in it.
26.
Read a string and copy the string into another
character array.
27.
Read a string and add welcome message to it.
28.
Display the following output
K
K I
K I R
K I R A
K I R A N
Display the output
K I R A N
K I R A
K I R
K I
K
No comments:
Post a Comment