C Programming Code Examples
C > Linked Lists Code Examples
Search for an Element in the Linked List without using Recursion
C Program Code Performing Binary Search -
C program, Using Recursion, performs binary search. In this C program, an array of random number is generated. User is asked to enter a key. The array of random numbers are sorted
C Program Code Finds Reverse of an Array -
C program just print array in reversed order. It does not reverses the array. Here I am writing the first basic logic to reverse an array. It uses above approach to access array element in...
C++ Sample How to Use If Else Statement -
In Programming, The "if statement" by itself will execute a single statement, or a group of statements, when the expression following if evaluates to "true". It does nothing when the
Generating Random Numbers by Multiply -
C++ Program to generate Random Numbers using Multiply with 'Carry' method. multiply-with-carry ("MWC") is a method invented by 'George Marsaglia' for generating sequences
Define and use Global variables in C code -
C program code example to Define and use Global variables. Declare a global variable. Function prototypes. Hiding the global count. Function t1 using global variable. Function...
C Code Sorts Set of Strings in Alphabetical -
In this program, user would be asked to enter a set of Strings and the program would sort & display them in Ascending alphabetical order. This C program would sort the input strings in
C++ Multiply Two Matrices use 2D Arrays -
C++ Code is very simple it takes input in two 2D arrays each with size of 2X2. After taking the input program "multiply two matrix" in 3 nested for loops. Size of arrays is defined use
C Language Break Statements Switch Case -
Break Statements are useful when you want your program-flow to come out of the switch body. Whenever break is encountered in the switch body, the control comes out of switch