# C Programming Code Examples

## C > Recursion Code Examples

### Display all the Nodes in a Linked List using Recursion

```
```

```
```

C Program Print Odd Numbers in a Range - C program to print all odd numbers from 1 to n using for loop. Input lower and upper limit from user. If start is not odd then make it odd And Initialize loop from start, increment it by

Prefix Increment ++ Operator overloading - The only difference is that, the return type of operator function is Check in this case which allows to use both codes ++obj; obj1 = ++obj;. It is because, temp returned from "operator"

C++ Coding Topological Sorting in Graphs - Using an adjacency matrix, displays the times at which the 'different times' at which nodes are visited and left thereby producing a linear ordering of vertices in a graph. And A graph is

C Check Whether a number is Even or Odd - C Program code to Check Whether a number is even or odd using if else. A number exactly divisible by 2 leaving no remainder, is known as even number. Any number modulo divided

C Language Calculation Divide Product PI - C Calculations on a table, the radius of table, the diameter of the table, the circumference of the table, the area of a circle, calculate the radius, calculate the circumference, calculate

Sum of Natural numbers using While loop - Find the sum of natural numbers using While Loop. When you use while loop, you have to initialize the loop counter variable before the Loop & Increment or Decrement it inside the

C++ Coding Generating Random Numbers - Following C++ program generate 100 random numbers using rand() function of stdlib.h. To generate random numbers in C++, we use the function rand() to generate and print random