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

Program to Detect the Cycle in a Linked List





Finds the Sum of ASCII Values of All Chars - Program takes a 'string as input' and finds the sum of 'ASCII values' of all characters in given string. Take a string as "input & store" it in the array string[]. Initialize the variable sum to '0'.

C Code using of &(ampersand) *(asterisk) - C We have already seen in the first example that we can display the address of a variable using ampersand sign. I have used &num to access the address of variable num. The &...

Print stuff to a File Reading the number of - Write a c programming example to print stuff to a file reading the number of time for an other file. Program code to read the number from a file. Program code to write to the file.

No sort, but reversing a [linked list] c code - Code add a lnode at the beginning of the list. Reverse the whole list. Display the whole linked list. Insert some numbers. Add a lnode at the beginning of the list. Add new node.

Counts Occurrences of Character in String - Program count all occurrences of a character in string using Loop. Input a string, store it in some variable "str". Input character to search occurrences and store it in some variable say

C++ Code Finds Greatest Common Divisor - This means a 'greatest number' which divides both numbers. Example: Two numbers are 18 and 24. Numbers which Divides both are 1, 2, 3 and 6 in which greatest number is 6. So 6 is

Program find Reverse of Negative number - Write a recursive function in C Programming to find reverse of a number. To find reverse of a negative number use the logic for positive number reverse which I mentioned above. In

Checks if an Directed Graph is Tree or Not - A C++ Program to check whether an directed graph is tree or not. Graph is tree if it doesn't contain cycles. Pointer to an array containing adjacency lists. Returns true if there is a cycle