Login


Lost your password?

Don't have an account ?
Register (It's FREE) ×
  


Shop
CPP All : String Handling (Null Terminated)
Concept Learning Code Sheets

Check if string is a palindrome using a function. #1395

Check if a character array or c-style string is same (Palindrome) when reversed using an independent function.

String declaration and initialisation #2545

String declaration as character arrays an initialising them as individual character literals or as string literals.

Finding string length using the null finding technique #2551

Finding the length of an initialised character array or the c-style string using the null termination check.

Finding string length using the strlen() function #2556

Finding the length of an initialised character array or the c-style string using the strlen() function.

Getting string input from user using cin.getline #2560

Collecting string like input from the user which could be a full line.

Comparing length of two strings entered by the user #2565

A program to compare length of two strings entered by the user using cin.getline() and compared using strlen.

Comparing two strings for exact character wise match or for sort order using strcmp() #2571

A program to compare two strings entered by the user if their all characters are same or which string will come first in the sort order using the function strcmp(str1,str2)

gets() puts() string functions use and misuse #2606

Using gets() and puts() string function and its serious limitations

strcpy() and strcat() use in null terminated strings #2611

Use of functions strcpy() and strcat() on null terminated strings.

Reversing a null terminated string #2621

Reversing the original string given by the user and then printing it.

Solved Problems

Comparing two names for sort order #2577

Write a program using the strcmp() function to prove that the name RAKESH wi

First word of sentence (by individual character printing) #2594

Write a program to print the first word of a sentence given by the user.

First word of sentence (by creating another null terminated string) #2601

Write a program to print the first word of a sentence given by the user by cr

count number of spaces in a given sentence #2614

Write a program  to count the number of space characters in a given input st

Change case of string input #2625

Write a program to get input of a string from the user as a character array a

Removing vowels from string #2628

Write a program to collect input sentence from user into a character array as

Word count assuming well formed sentence #2632

Write a program to count words in a given input sentence by a user, assuming

output writing example strcpy, strcat #2649

Write the output of the following program.

Character replacements in a string #2673

Write a c++ program to collect a small sentence from the user and then print

Output Writing – isupper(), islower, isalpha() #2677

Write output of the following program.

Counting words in a text input even if it is not well formed #2717

Write a program to count number of words even when there might be extra space

Find presence of a character in a null terminated string. #2840

Write a program to get a sentence from the user and then a single character f

Reversing each word in a sentence #3073

Write a program to take a sentence input from the user and then print the sen

Frequency of a given character in a sentence #3243

Write a program to input a small sentence from the user and ask about frequen

Quizzes

Code Sheets:10  Solved Problems:14  Quizzes:2
Back