# C Programming Code Examples

## C > Linked Lists Code Examples

### C Program to Create a Linked List & Display the Elements in the List

Find Sum of Odd Numbers in given Range -
How to find sum of all odd numbers in a given range in C programming. Input upper limit to find sum of odd numbers from user. Store it in a variable say N. Initialize other variable to

C++ Find the HCF and LCF of 2 Numbers -
Enter the two number, to find the HCF and LCF of the given two number to display the value of the HCF and LCM of the 2 numbers on the output screen as shown here in code

Code Converts Binary Number to Decimal -
C language code to convert binary to decimal number system. The Binary number system is base 2 number system & uses only 2 symbols to represent all its numbers i.e. 0 and 1. Input

Sample Implements Sieve of Eratosthenes -
C++ program sample to implement Sieve of Eratosthenes. Program initializes an integer array with all the "elements initialized" to 0. Then The Algorithm follows where the each

Evaluates the Value of Any Polynomial of -
Give the degree of the polynomiala. Give the value of the coefficients. Give the value of the coefficients. Give the values of the coefficient of polynomialb. Give value to be substituted

C++ Shutdown & Restart Your Computer -
C++ sample made for both i.e., to shutdown your computer or to 'restart your computer', first it will ask to the user want to shutdown computer or want to restart computer. Then

Converts Octal Number to Binary Number -
To convert octal number to binary number in C++, you have to ask to the user to enter the octal number to convert it to binary number to display the "equivalent value" in binary as

CGI Programs using C++ in Programming -
CGI stands for common gateway interface is set of standards that define how information is exchanged from a 'webserver', passing the web user's request to an application program