C Programming Code Examples
C > Arrays and Matrices Code Examples
Program to reverse an array without using another array
Binary Search Tree by Recursive Traversals -
Function to insert a node in the tree. Inorder recursive & nonrecursive traversal. 'Preorder' recursive & nonrecursive traversal. 'Postrder' recursive traversal. Postorder non recursive
C++ Code Sample Preprocessor Directives -
There are different "Preprocessor Directives" that perform different tasks. Lets categorize preprocessor directives. Inclusion directives: "#include": specifies the files to be included,
Code Find Sum of lower Triangular matrix -
C program to read elements in a matrix and find sum of lower triangular matrix. How to find sum of lower triangular matrix in C. Find sum of lower triangular matrix, we need to
Strrchr searches the string in reverse order -
'StrrChr' is similar to the function 'StrChr', the only difference is that it searches the string in "Reverse Order", would have understood why we have extra r in 'strrchr', yes you guessed it
Code Passing Array to Function using Call -
When we pass the address of an array while calling a function then this is called function call by reference. When we pass an address as an argument, the function declaration...
C Language Code Investigating the Family -
C Function to input data on Family members. C Function to output data on people on file. Structure to hold data from file. Pointer to Family structure. File position. Open file for
Program to Solve a Matching Problem For -
Program to solve a matching problem. Given N men and N women, where each person has ranked all members of the opposite gender in order of preference, marry the men & women
Switch Case Statements Break Statement -
Lets see a sample without break statement, then we will discuss switch case with break 'Switch Case' statement is mostly used with 'break statement' even though the break is