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 > Linked Lists Code Examples

C Program to Display all the Nodes in a Linked List using Recursion

C Program Code Find Length of the String - "Gets()" is used to accept string with Spaces and we are "Passing accepted String" to the function. Inside function we have stored this string in pointer. Inside "While Loop" we are

Check a Number can be Expressed as Sum - Program to check whether a number can be expressed as sum of two prime numbers. To accomplish this task, "checkPrime()" function is created. The "checkPrime()" returns 1 if the

Find Sum of Opposite Diagonal Elements - C program to read elements in a matrix and find the sum of minor diagonal elements. C program to calculate sum of minor diagonal elements. Input elements in matrix from user

Compare two Strings in the C++ language - Function will return 0, if the strings are equal; return 'negative value', if "string1 is less" than string2 and return "positive value" if string1 is greater than string2. This function 'compares'

Generate a Sequence of N Characters for a - This algorithm takes the input of the 'specific' sequence. It generates random Subsequence from the given character string. A function to generate 'random' sequence of a given length

C Store Information Name Roll and Marks - In this c program code, a structure, student is created. This structure has three members: name (string), roll (integer) and marks (float). Then, a structure variable s is created to store

C Analogue Clock create and Display Time - Record the time program starts execution. Record the current time, using the alternate method of. Convert the time_t value into a type tm structure. Create and display a string

Largest Rectangular Area in a Histogram - Get minimum of two numbers in hist[]. Get the 'middle index' from corner indexes. Get the index of minimum value in a given range of indexes. Then returns 'index' of minimum