# C Programming Code Examples

## C > Linked Lists Code Examples

### C Program to Implement a Stack using Linked List

Reads Input until Enters a Positive Integer -
C Language program to read input until user enters a positive integer. Positive Numbers 1, 2, 3... are known as natural numbers. C code below takes a positive integer (let say n) as...

C++ Finds Convex Hull of A Set of Points -
Program to implement "Jarvis March" to find convex hull. The idea of Jarvis's Algorithm is simple, we start from the 'leftmost point' (or point with minimum x coordinate value) and

C++ Return the Structure from a Function -
In this C++ example, we have "two functions" one gets the values from user, assign them to structure members and returns the structure and the other function takes that structure as

Get Lowest order or first set bit of number -
C Program Lowest order or first set bit of any number is the first bit set starting from left to right. Lowest order set bit of any odd number is 0 since first bit of any odd number is always

C++ Program Checks Armstrong Number -
In c++ program, a positive integer is asked to enter which is stored in the variable origNum. The number is copied to variable num. This is done because we need to check the origNum

C Language Program Implement Cyclesort -
C Program implements 'Cyclesort'. Cycle sort is an in-place, unstable 'Sorting Algorithm', a comparison sort that is theoretically optimal in terms of the total number of writes to the

Program Structure in The C Programming -
Create a structure. The name of the structure is StudentData. The Student is the variable of structure StudentData. Assigning the values of each struct member here. Displaying the...

Convert centimeter to meter & kilometer -
C Program Code input Length in centimeter and convert it to meter and kilometer. How to convert length from centimeter to meter and kilometer in C. Input length centimeter