C Programming Code Examples
C > Data Structures Code Examples
Self-referential structure, example from K and R
How to Call Overridden Functions in C++ -
As we have seen above that when we make the 'call to function' (involved in overriding), the child class function (overriding function) gets called. what if you want to call the C++
C++ Programming Simple Stack Program -
A "stack" is a basic data structure and can be defined in an abstract, implementation-free manner, or it can be generally "defined" as a linear list of items in which all additions and
C Sort Structures on the basis of Structure -
Using cricket, declare an array player with 10 elements and write a c program to read the information about all the 10 players and print a team wise list containing names of players
Every Possible Combination of two Strings -
Program display every 'possible combination' of 2 "Words or Strings" from the input strings without repeated combinations. Read strings into 2d character arrays. Concatenate string1
C Circular Queue implementation through -
C Programming language code for circular queue implementation through Array. Add element to Circular Queue. Delete element from the Circular Queue. Do you want to do
Count total number of notes in an amount -
C program input amount and print minimum number of notes (Rs. 500, 100, 50, 20, 10, 5, 2, 1) required for the amount. There any many optimal algorithms to solve given problem.
Compare Both the String n Chars strncmp -
C programming String functions "strncmp". It compare both the string till n characters or in other words it 'compares' first n characters of both the strings. Print string1 and string2 are
Park-Miller Random Numbers Generation -
C++ Program to generate 'random' numbers using Park-Miller algorithm. general formula of a random number generator (RNG) of this type is: 'X_{k+1} = g X(k) mod n'. To generate