C Programming Code Examples
C > For Loops and While Loops Code Examples
C program to print all prime numbers between 1 to n
Illustrate how User Authentication is Done -
C programming code asks for the username, password and displays the same to illustrate user authentication. Take the user name and password as input. Print the each character...
C++ Searching Using Self-Organizing Lists -
"Self-Organizing" List updates on the basis of 'last searched item'. The sequential searching approach is used. In general search, 80% time only specific 20% of data is accessed. Sample
C Code Prints Prime Numbers from 1 to N -
C program print all Prime numbers between 1 to n using loop. A Prime number is a positive integer greater than 1 that is only divisible by 1 and itself. For example: 2, 3 , 5, 7, 11 are the
C++ Using Simple Hierarchical Inheritance -
In C++ Language, The relationships of objects or classes through "Inheritance" give rise to a hierarchy. In hierarchical inheritance a single class serves as a superclass for more than one
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
Find Palindrome Number in C++ language -
We already known that if reverse of a number is equal to the same number, it is Palindrome number. Remember it: certain variables and a loop use to get the reverse of a number which
Types of functions in The C Programming -
Predefined standard library functions - such as puts(), gets(), printf(), scanf()... These are the functions which already have a definition in header files (.h files like stdio.h), so we just
C++ Wheel Sieve Generate Prime Number -
This is a C++ Program to find 'Prime number' between the given range using 'Wheel Seive' method. "Wheel Factorization" is a graphical method for manually performing preliminary