C Programming Code Examples
C > Sorting Searching Code Examples
Program to Sort the Array Elements using Gnome Sort
Read an Array and Search for an Element -
C code accept an array of N elements and a key to search. If the search is successful, it displays "Successful Search". Otherwise, a message "UNSUCCESSFUL SEARCH" is...
Find First Capital Letter in a String without -
Program using iteration, finds the first capital letter that exists in a string. We have included ctype.h in order to make use of int "isupper()" C Function that's Defined inside the "ctype.h"
Sorting Elements in Lexicographical Order -
C Language program code 'Sort Elements' in lexicographical order (dictionary order). This program takes 10 words(10 strings) from the user and sorts them in lexicographical order.
C Programs Binary Octal Hex Conversions -
C programming code example for Number Conversions: Binary to decimal, decimal to binary, decimal to octal, decimal to hex, octal to decimal, octal to binary, binary to octal,
C++ Program to Implements the B+ Tree -
A B+ tree is an n-ary tree with a variable but often large number of "children per node". A B+ tree consists of a root, internal nodes and leaves. The root may be either a leaf or node
C Program to Implement Stack Operations -
C Implement stack operations using dynamic memory allocation. Use malloc function to allocate memory. Define separate functions for the operations like push, pop and display.
C Language Codes & Arithmetic Operators -
Arithmetic operator performs mathematical operations such as addition, subtraction and multiplication on numerical values (constants and variables). C Program to demonstrate...
C language simple program dice throwing -
C Programming dice throwing code. Seed the random number generator. The highest score of the two dice wins. Get a random number from 1 to 6. Calculate the total of the two...