C Programming Code Examples
C > C on Unix Code Examples
program to implement who command
C++ Implement Dijkstra's Algorithm using -
This C++ program code displays the Djikstra's Algorithm of finding shortest paths from one node to others using the concept of a priority queue. A "Priority Queue" is an abstract data
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++ Class Program to Find Prime Number -
A 'prime number' is a natural number greater than 1 that has no positive divisors other than 1 and itself. The C++ Programming Language allows you to separate program-specific data
Display decimal equivalent of input binary -
C Programming language example to display decimal equivalent of a input binary number. What will be the length of input no.? Don't exceed input from your input limit or 5 digits
Finds Factorial of Number using Recursion -
Declare recursive function to find factorial of a number. First let us give a meaningful name to our function, say fact(). Factorial Function accepts an integer input whose factorial is to
Compare two Binary Files and Printing the -
C Compare two binary files, printing the first byte position where they differ. Compare two binary files character by character. Character by character comparision. If equal, continue
C Program Codes write data in DMA Mode -
Motor on, command code, cylinder no. Sense Interrupt Command. Reading ST0 in data register. Initialization DMA Mode. Supplying Mode Byte. Supplying channel no. on port 10.
C Program Code Checks Vowel Consonant -
C Programming Language check whether an alphabet is Vowel or Consonant using if else. English alphabets a, e, i, o, u both lowercase & uppercase are known as vowels. Alphabets