Happy Codings - Programming Code Examples
Html Css Web Design Sample Codes CPlusPlus Programming Sample Codes JavaScript Programming Sample Codes C Programming Sample Codes CSharp Programming Sample Codes Java Programming Sample Codes Php Programming Sample Codes Visual Basic Programming Sample Codes


C Programming Code Examples

C > Sorting Searching Code Examples

Selection sort [linked list]





String Functions strcmp Compares Strings - C function 'compares' the two strings, returns an integer value. If both the strings are 'same' then this function would return 0 otherwise it may return a negative or positive value based

Find the Maximum Size Clique in a Graph - This is a C++ Program to find the 'cliques' of size k in a a graph. An "Undirected Graph" is formed by a finite set of vertices and a set of unordered pairs of vertices, which are called

C++ Language Counts Words in Sentence - To "count total number" of words used in any sentence in C++, you have to ask to enter the sentence. And then, to count total number of words present in the string, search for spaces

The Mind Reader game C Coding example - Choose a two digit number and add digits. Subtract the sum from original number. See the symbol opposit to the number you got. Press any key The MIND READER will display

C++ Sample Passing Pointers to Functions - "In C++", each 'parameter' was followed by an "ampersand sign" (&). (&) will pass an address of the original variable instead of by value. In Passed by reference, the original variable and

Compile Ttime Polymorphism in The C++ - In this C++ example, we have two functions with "same name" but different number of arguments. Based on how many parameters we pass during Function call "Determines"

Open Files & Compare Files in C Language - Open first file, open second file then compare the files. If the file won't open giving message Error reading first file or Error reading second file. Files differ at byte number or files are the

Program Find the Average using Function - C code to find the average using function. We have created user defined function average() for the calculation of average. The numbers entered by user are passed to this c function