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 > Beginners Lab Assignments Code Examples

Void (void) data type in C programming language





Program to Find Minimum Spanning Tree - This C++ program sample depicts the Prim's Algorithm which finds the minimal spanning tree(tree consisting of the minimum weights of edges connecting any 2 vertices) in graph.

C Decimal to Binary, Octal HEX Converting - C programming converting example. Decimal number to Binary number, Octal number and HEX number converter. Enter any number to be converted. The Number has to be in the...

Creating a Function Checks Prime Number - Function returns true if the number passed to the function is a 'prime number', returns false if the number passed is not a 'prime number'. The appropriate message is printed from the

Random Numbers Probability Distribution - Program to generate random numbers using Probability Distribution Function. Probability distribution is based on "Probability Density" function. a probability density function (pdf),

Program Code Demonstrate Nested Printf - Print to 'abcdefghijklmnopqrstuvwxyz' while executing inner printf. Length of the "abcdfg hijklmnopqrstuvwxyz" is 26. Printf will return Length of String. It returns 26 to outer printf

Implement Stack Operations Using Arrays - Program code for implementing a stack using arrays. It involves various operations such as push, pop, stack empty, stack full and display. We have created 'stack' structure. We have...

Construct an Expression Tree For a Given - Program, using recursion, evaluates a Prefix Expression in an "Expression Tree". A binary expression tree is a specific application of a 'binary tree' to evaluate certain expressions.

Program Code Find Factorial of a Number - Program to input a number and calculate its factorial using for loop. Factorial of a number n is product of all positive integers less than or equal to n. It is denoted as n!. ex. 5! = 120