Category Archives: c program

C program for Selection Sort

C program for Selection Sort. Selection Sort is a simple-unstable-in-place Sorting Algorithm. Selection sort is efficient when memory is limited and over a small set of data, while make it more complex and inefficient on large set of data and become more worse as compare to insertion sort. You can also see other sorting algorithm implementation like, Heap sort, bubble … Continue reading C program for Selection Sort

C program for Insertion Sort

C program for Insertion Sort. Insertion sort is one of the simple-stable-in place Sorting Algorithm which is efficient when applied over small set of data. While insertion sort takes more time to perform sorting over large list i.e less efficient for large set of data, as compare to other sorting algorithm. Insertion sort reminds one of Selection … Continue reading C program for Insertion Sort

C program to convert Binary to float

C program to convert Binary to float. Binary for floating point number can be represented in either or two ways i.e either with IEEE754 32 bit standard format or with binary point representation. Let us take an example : Example : 1010.101100    = > 10.7  (Binary point representation) 0 10000010 01010110011001100110011 = > 10.7 … Continue reading C program to convert Binary to float

C program to convert float to binary

C program to convert float to binary. Floating point number can be converted to binary number in two ways i.e either in Binary Point representation(binary number with binary point) or with standard IEEE754 format(32 bit binary representation). Let us take first example, for both the conversion. Example: 10.7 can be converted to both format as: … Continue reading C program to convert float to binary

String.h – string functions in c

String.h – string functions in c. c compiler have useful string handling library function. String functions in c are included in header file string.h. In this header file in built functions are provided to make it easier for programmer to operate on string easily and efficiently by using the provided functions. Click below on the functions to see the c … Continue reading String.h – string functions in c

C program for ASCII number from ASCII code

C program for ASCII number from ASCII code. ASCII i.e American Standard Code for Information Interchange is character encoding scheme. This ASCII codes is used, as computer can only understand numbers. To print all ASCII codes i.e 256 you can try this code which gives you proper explanation to work with it and also C program … Continue reading C program for ASCII number from ASCII code