C Programming Code Examples
C > Sorting Searching Code Examples
Treesort [string array]
C++ Coding Find Factorial using recursion -
User enters a number which stores in variable "num". Then number "passes as argument" in function call A static variable is used to check that how many times function is called. When
Program to Solve The Fractional Knapsack -
Given a 'set of items', each with a mass and a value, determine the number of each item to include in a collection so that the total weight is less than or equal to given limit & the total
Takes octal number as input and converts -
C Program take a octal number as input and store it in the array octalnumber and using switch statement access each digit of a octal number and print its equivalent binary value
C Sample Code Function Call by Reference -
What is function call by reference in C? When we call a function by passing the addresses of actual parameters then this way of calling the function is known as call by reference. In call
C program to Calculate 1+2+3+4+5+...+N -
In The C, you can print any number series and I will show you how to 'print number series' in C Language with explanation. In case of print number series you need to focus on common
Code Converts Decimal to Binary Number -
C Program Code input Decimal number from user and convert to binary number system. Decimal number system is a base 10 number system. Decimal number system uses only 10
C++ Program Finds the Area & Perimeter -
Enter width of rectangle and enter height of rectangle. Print the "area of rectangle". Print the perimeter of rectangle. Formula: Area of rectangle: height*width. Formula: Perimeter
Find Quotient & Remainder with Function -
In this program, we are doing the same thing that we have done in the above program, but here we're using functions in order to find the Quotient & Remainder. We have created two