-->
Showing posts with label array with string programs. Show all posts
Showing posts with label array with string programs. Show all posts

array with string programs

1) wap to initialize strings and display them.

                                                                                                               solution
2) WAP to initialize some characters and display them.
                                                                                                              solution

3)WAP  to input any five names with address and display them.

                                                                                                            solution



programs strings with library functions (in-built functions)


1) WAP to get /find length of string using(strlen()) function.

                                                                                                           solution
2)WAP to reverse a string using strrev() function.

                                                                                                         solution

3)WAP to convert string into uppercase using strupr() function.

                                                                                                            solution

4)WAP to convert string into lowercase using strlwr() function

                                                                                                            solution

5)WAP to copy a string using strcpy().

                                                                                                            solution
6) WAP to concatenate /merge two strings using strcat() function.

                                                                                                             solution
7)WAP to compare two strings using strcmp() function.

                                                                                                            solution

8) wap to look for a specific character in given string using strchr() function.


                                                                                                         solution

9)WAP to set all characters in the given string to the character using strset() function.

                                                                                                         solution
10)WAP to find initial segment of string that consists entirely of characters from second string. using strspn() function.
                                                                                                       solution

11)WAP to scan first string for the first occurrence of the substring  in string second using strstr() function.
                                                                                                     solution           

12)WAP to search a string in given list of strings.

                                                                                                     solution

without using library functions:

1) WAP to find length of string without strlen() function.

                                                                                                    solution
2)WAp to reverse a string without using strrev function().

                                                                                                     solution
3) WAP to convert given string into uppercase without using strupr() function.

                                                                                                  solution

4) WAP to convert given string into lowercase without using strlwr() function.

                                                                                                 solution

5)WAP to copy a string without using strcpy().

                                                                                                            solution
6) WAP to concatenate /merge two strings without using strcat() function.

                                                                                                             solution



combined programs:

1) Write a program to sort 'n' strings. (ascending order or descending order).


                                                                                                                          solution
2) WAP to search a  string from a set of strings.

                                                                                                                             solution
3) WAP to know a string is Palindrome or not.

                                                                                                                         solution

4) WAP swap two strings.
                                                                                                                          solution

5) WAP to count total number of vowels in a string.

                                                                                                                          solution
6)WAP to count total number of consonants in a sting.

                                                                                                                          solution
7)WAP to count total words in a string.

                                                                                                                          solution
8) WAP to count particular character in a string.

                                                                                                                         solution

9) WAP to count total spaces in a string.

                                                                                                                          solution

10)WAP to count total digits present in a string.

                                                                                                                        solution
11)WAP to replace all white spaces with a character.

                                                                                                                       solution

12)WAP to count all characters after first white space.

                                                                                                                       solution
13)WAP to print all characters before the first space.

                                                                                                                        solution