# C Programming Code Examples

## C > Strings Code Examples

### C Program to Find Substring Of String Without Using Library Function !!!

C++ Coding Topological Sorting in Graphs -
Using an adjacency matrix, displays the times at which the 'different times' at which nodes are visited and left thereby producing a linear ordering of vertices in a graph. And A graph is

Bricks Game program coding example in C -
Create opening screen and accept the level of the player's. Assign the speed to ball as per the level chosen. Draw four layer of bricks, the paddle and the ball. Memory allocation

Learn Bitwise Operators in C++ Language -
in C++, "bitwise operators" are similar to the Logic operators, but they perform the same logical operations on bits. All data in memory is represented in the "binary form". Variables

C++ Language Passing Arrays to Function -
In this C++ Code, we are passing 2 arrays a & b to the "function sum()". Function adds the "corresponding elements" of both the arrays and display them. This c++ function adds the

Count Occurrence Positive Zero Negative -
We have to enter some set of numbers. Now to find occurrence of positive, negative, zero from the given set of numbers, just check all the numbers using for loop whether number

C++ Program Finds Transpose of a Matrix -
First we have to clear about what is transpose of a matrix. Its to replace the number of rows with number of colums, vice versa to make a new matrix. So for example if a matrix 'A' has

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++ Implement Shortest Path Algorithm -
For a general weighted graph, we calculate single source shortest distances in "O(VE)" time using 'Bellman-Ford Algorithm'. For a graph with no negative weights, we can do