Quantcast
Channel: electrofriends.com » C/C++
Browsing latest articles
Browse All 10 View Live

Program to find the total number of palindrome in a given string

Here is  the program to find the total number of palindromes present in the entered sentence.  This program internally uses the logic to find the palindrome, discussed earlier. Logic :  The given...

View Article



Program to concatenate two given string

This is the example program to concatenate two given strings dynamically, i.e. at the run time. Concatenating simply means that appending one string to another. Logic : Here the logic is simple that...

View Article

Program to concatenate two given string using Pointer

This is another example program to concatenate two given strings dynamically using the string pointers. Earlier program explains the way to concatenate two strings by direct method. Logic : The program...

View Article

To replace a word by another word in a given string

#include<stdio.h> #include<conio.h> int stlen(char str[50]) { int len = 0; while(str[len]!=’\0′) len++; len–; return len; } void stcat(char str1[50], char str2[50]) { int i = 0,len = 0;...

View Article

To check whether the given string is palindrome-method 1

Here is  the program to check if the entered string is a palindrome or not. As we have seen in the earlier cases, Palindrome is a string segment, which reads same from both the directions. The same...

View Article


To check whether the given string is palindrome-method 2

Here is  another program, advanced version of the previous program, to check if the entered string is a palindrome. Palindrome is a string segment, which reads same from both the directions. The same...

View Article

To copy the contents of one string to another string

This is the simple implementation of the “Copy” function of the computer world. This program copies the content of one string to another. Logic : The program asks the user to input the string to copy...

View Article

To copy the contents of one string to another string using pointer

This is the simple implementation of the “Copy” function using the pointers. This program copies the content of one string to another. Logic : The program asks the user to input the string to copy and...

View Article


To reverse the given string

Here is the program to reverse the given string and display. The program internally uses the logic of reversing the word. Logic: Reversing the string includes the reversing the each and every words in...

View Article


Image may be NSFW.
Clik here to view.

To reverse the given string using pointer

This is the program to reverse the given string and display. The program internally uses the logic of reversing the word. Logic: The approach here is to reverse the string using the pointers. Reversing...

View Article
Browsing latest articles
Browse All 10 View Live




Latest Images