# C Programming Code Examples

## C > Linked Lists Code Examples

### Program to Reverse only First N Elements of a Linked List

Read integers into an array and Reversing -
We have declared one pointer variable and one array. Address of first element of array is stored inside pointer variable. Accept Size of an Array. Now we have accepted element...

C Codes Multiply 2 Numbers use Function -
Create a user defined function product() that multiplies the numbers that we are passing to it during function call. This c function returns the product of these numbers. To understand

Number of days in a Month by switch case -
C Program to Input month number and Print Total Number of Days in Month using switch case. Input month number from user. Store it in some variable say month. Switch the value

C Language Finding the Sum of A.P Series -
Program calculates the the sum of A.P series. This C program is used to find the sum of the "Arithmetic Progression Series" and Here A.P stands for Arithmetic Progression. Sequence

C Language Copy the Strings Use Pointers -
C program 'Copy one String to another' string using loop. Input string from user and store it to some variable say "text1". Declare another variable to Store copy of first string in "text2".

C Programming Sample Reading the Files -
To read the file in C Language, we must open it first using any of the mode, for example if you only want to read the file then open it in "r" mode. Based on the mode selected during

Finds out the Roots of Quadratic Equation -
C Program calculates the roots of a quadratic equation. First it finds Discriminant using the Formula: Disc = 'y*y-4*x*z'. There are 3 types of roots. They are complex, distinct and equal

Printing Multiplication Table of a Number -
C program to input a number from user and print multiplication table of the given number using for loop. Input a number from user to generate multiplication table. Store it in a var