Tag: Binary
Posts of Tag: Binary
  1. Convert Decimal to Binary in C

    Here you will get program to convert decimal to binary in C. We can convert a decimal number into binary by repeatedly dividing it by 2 and storing the remainder somewhere. Now display the remainders in reverse...Learn More
    C ProgramsLoopBinaryProgramming Languages
  2. Convert Binary to Decimal in C

    Here you will get program to convert binary to decimal in C. We can obtain a decimal number by multiplying each digit of binary number with power of 2 and adding each multiplication result. The power starts fro...Learn More
    C ProgramsLoopBinaryProgramming Languages
  3. C program to write student record to a binary file

    #include <stdio.h> #include <conio.h> #include <stdlib.h> struct student { int rollno; char *name; int m1, m2, m3; } s1; void main() { FILE *fp; clrscr(); fp = fopen("R...Learn More
    C ProgramsFile HandlingBinaryProgramming Languages
  4. Binary Tree in C Using Recursion

    Binary Tree in C Using Recursion Here you will get program to create binary tree in C using recursion. What is Binary Tree? A tree is said to be a binary tree if each node of the tree can have maximum of two ch...Learn More
    C ProgramsData StructureBinaryProgramming LanguagesDev
  5. Binary Search Tree in C

    Binary Search Tree in C Here you will get program for binary search tree in C. A Binary Search Tree (BST) is a binary tree in which all the elements stored in the left subtree of node x are less then x and all ...Learn More
    C ProgramsData StructureBinaryProgramming LanguagesDev
  6. Height and Depth of Binary Tree

    Height and Depth of Binary Tree In this tutorial, we will learn how to find height and depth of binary tree with program implementation in C++. It is one of the most commonly used non-linear data structures. We...Learn More
    Data StructureBinary
  7. Program to Convert Binary to Decimal in Java

    Program to Convert Binary to Decimal in Java Here you will get program to convert binary to decimal in Java. There are mainly two ways to convert a binary number to decimal number in Java. 1. By using parseInt(...Learn More
    JavaBinaryProgramming Languages
  8. C++ overloading binary operators, addition, subtraction, multiplication, division & comparison

    **C++ program for overloading binary operators, addition, subtraction, multiplication, division and comparison** In this program we will first create a class demo that contains two float data members a and...Learn More
    C++ ProgramsClassBinaryProgramming Languages
  9. Program for Binary Search in Java

    Program for Binary Search in Java Binary search in Java is a divide and conquer technique used to search an element in an array. The array is assumed to be sorted in ascending order. Below I have shared the ...Learn More
    JavaBinaryProgramming Languages
  10. Python Program to Convert Decimal to Binary, Octal and Hexadecimal

    Python Program to Convert Decimal to Binary, Octal and Hexadecimal Here you will get python program to convert decimal to binary, octal and hexadecimal. Python provides inbuilt functions for conversion of one n...Learn More
    PythonBinaryProgramming Languages
  11. Python Binary Search

    Python Binary Search Here you will learn about python binary search with program and algorithm. In linear search, we have to check each node/element. Because of this, time complexity increases. To reduce this t...Learn More
    PythonBinaryProgramming Languages
  12. Threaded Binary Tree with Implementation

    Threaded Binary Tree with Implementation In this tutorial we are going to see a data structure known as threaded binary tree. Before starting with that we should know what does a binary tree means and after tha...Learn More
    Data StructureBinaryDev