# C Programming Code Examples

## C > Strings Code Examples

### program to search all occurrences of a character in a string

C Program to causes the function pointed -
C Programming Causes the function pointed to by func to be called upon normal program termination. Returns zero if the function is successfully registered as a termination and...

Checks Cycle in a Graph using Topological -
Displaying the "Topological Sort Method" of finding whether a given graph contains cycle or not using Kosaraju's Algorithm. Enter the source and destination. Cycles exist in graph.

Find The Perfect Number In C++ language -
For example 6 is Perfect Number since divisor of 6 are 1, 2 and 3. Sum of its divisor is 1 + 2+ 3 =6 and 28 is also a 'Perfect Number' since 1+ 2 + 4 + 7 + 14= 28. Other 'Perfect Numbers': 496

C Evaluating Subtraction of Two Matrices -
Before accepting the Elements Check if no of rows and columns of both matrices is equal. Accept the Elements in Matrix 1. Accept the Elements in Matrix 2. Subtraction of two...

Implement A Heuristic to Find the Vertex -
Problem takes E edges as input and outputs vertex cover of the graph, implementing the following heuristic. There is no "Polynomial" time algorithm "invented up to date" to find

Input Password & Validation of Username -
Code accept character without echo (without displaying on Screen) getch will accept character and store it in "ch". ASCII value of "Enter Key" is 13. Stop accepting password

Enters The Value of N & Then Ask to Enter -
Following C++ program first ask to the user to enter the value of n and then ask to enter the n Number to add them. This program add all n numbers entered. To add n numbers in C++

C++ Language Implement Multiset in STL -
C++ Program demonstrates implementation of "Multiset in STL". "Insert element" into the multiset. "Delete element" from the multiset. "Find element" in a multiset. Count elements