C Programming Code Examples
C > Mathematics Code Examples
Program to Generate Fibonacci Sequence Up to a Certain Number
C++ Language Open and Read File Source -
C++ program opens a file named filename.txt to read the content present inside this file, if there is an error in opening a file then puts a message on the screen for the "error", and if
C Program sort directory entrys by filesize -
Code compare function for qsort. Add ONE element to the array. Allocate memory for ONE 'struct node'. Copy the data into the new element ( structure ). Qsort array of...
C++ Swap 2 Numbers using Built in Swap -
C++ code which take two numbers from user and swap using built in swap function. Code takes two input and displays numbers before and after swapping. Note: If we remove std::
C Sender program using Message Queues -
This is the C sender program using Message Queues. A message queue program code that shows a client server implementation. Enter some message text you want to send.
Code to find the Frequency of Odd & Even -
Program code finds frequency of odd & even numbers in the given matrix. The program first accepts the matrix. Then finds the odd and even numbers in a matrix. Then finds the
Converts Octal Number to Binary Number -
To convert octal number to binary number in C++, you have to ask to the user to enter the octal number to convert it to binary number to display the "equivalent value" in binary as
Largest Rectangular Area in a Histogram -
Get minimum of two numbers in hist[]. Get the 'middle index' from corner indexes. Get the index of minimum value in a given range of indexes. Then returns 'index' of minimum
Example Sort an Array in decending order -
C Programming example code to sort an array in decending order. Enter number of data (maximum 100). Enter data (in integer). Your array in decending order is as follows: