What do you want to save?
Add Code snippet
New code examples
-
C++ 2022-02-02 22:01:36
distinct char string c++
#include<stdio.h> #include<string.h> // function to return the number of unique // characters in str[] int count_unique_char(char* str) { int hash[128] = { 0 }; int i, c = 0; // reading each character of str[] for (i = 0; i < strlen(... Add solution -
C++ 2021-11-17 09:41:13
cpp program to temove space from string
#include<iostream> #include<string.h> using namespace std; int main () { char str[80]; int i=0, len, j; cout << "Enter a string : "; gets(str); len = strlen(str); for( i = 0; i < len; i++) { ... Add solution -
C 2021-09-30 04:14:03
Write an Algorithm to reverse a string without using any built-in function.
#include <stdio.h> int main() { char str[100], temp; int i, j = -1; // Take string input from user. printf("Enter string"); gets(str); i = 0; // count the length of a input ... Add solution
Best helpers
Alexingohr
+5
Cali
+5
Veirtimid
+5
Anon8889
+5
Sardathrion
+5
Nuria
+5
Tony Ong
+5
Mike Adams
+5
Shachna
+5
PoundingRain
+5
Zhengyue
+5
Shahar Tene
+5
Kang
+5
Altexpape
+5
Aung68618
+5