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 > Pointers Code Examples

This program shows how a pointer is declared and used in C

Code Generates All Possible Combinations - Algorithm print all the 'possible combination' of each length from the given array. The time complexity of this algorithm is 'O(n*(2^n))'. A function to print all 'Combination of a Length'

C Armstrong Numbers Between 2 Integers - Program Print Armstrong Numbers between two Integers. In case of an armstrong number of 3 digits, the Sum of Cubes of each digits is equal to the number itself. For example: 407

Find Length of Strings Without use Library - Its easier to find the length of the string using given library function, but in this program we are finding the "Length of the String" without using Library Function. In the above program

Finds Independent Sets in Graph by Graph - Code finds 'largest independent' set by graph coloring. In graph theory, an independent set or stable set is a set of vertices in a graph, no two of which are adjacent. That is, it is a set I

Find the Sum of All Nodes in a Binary Tree - Program code to find the sum of all nodes in a binary tree. Structure to create the binary tree. Inserting elements in the binary tree. C Code to dynamically create new nodes. Code

Fibonacci Sequence up to Certain Number - Program to generate Fibonacci Sequence up to a certain number. The Fibonacci sequence is a series where the Next term is the Sum of Pervious 2 terms. The First Two terms of the

Simple Class Declaration in C++ language - C++ language allows us to separate program-specific datatypes through the use of classes. "C++ Classes" define types of data structures and the functions that operate on those data

Function Call by Reference Swap numbers - Here we are swapping the numbers using call by reference. As you can see the values of the variables have been changed after calling the swapnum() function because swap happened