Google Add


C, C++ Programming Questions on Strings - Interview Questions

C, C++ programming interview questions on strings. These type of questions are generally asked in interviews.

What is a String?

An string is an array of characters. The last character in a string is NULL character or you can say that string is terminated with NULL character ( whose ASCII value is zero).

/* Declare character array (array of characters is string). */

char str[100];

/* Other way. */

char str[]="Hello";

Let's check how it's store. Remember string is always terminated by NULL character.

C Programming Questions on Strings

How to read string with spaces using scanf.

C program to compare two strings using strcmp() function

C program to find the length of a string without using strlen()

Check whether string is Palindrome or not

Program to Count number of words in a sentence

Program to check whether a input character is vowel or not

Program to count number of vowels and consonants in a string

Program to Compare two Strings

Program to Concatenate two Strings

Count number of vowels in a string

Copy one string into another without using any library function

Program to convert string/characters from uppercase to lowercase

Program to count number of vowels and consonants in a string


Reverse a string

Reverse a string using stack

Reverse words in a string


C program to check whether two strings are anagram of each other

No comments:

Post a Comment