Consider the below program.
int main( )
{
  int arr[2] = {0,1};
  printf("First Element = %d
",arr[0]);
  getcha...

Share

Write a C program to show memory representation of C variables like int, float, pointer, etc.
Algorithm:
Get the address and size of the variable. Typecast the add...

Share

We recommend to read following two posts as a prerequisite of this post.
1. Greedy Algorithms | Set 5 (Prim’s Minimum Spanning Tree (MST))
2. Graph and its rep...

Share

We recommend to read following two posts as a prerequisite of this post.
1. Greedy Algorithms | Set 7 (Dijkstra’s shortest path algorithm)
2. Graph and it...

Share

Binary is a base-2 number system that uses two states 0 and 1 to represent a number. We can also call it to be a true state and a false state. A binary number is bui...

Share

1. To convert the floating point into decimal, we have 3 elements in a 32-bit floating point representation:
    i) Sign
    ii) Expone...

Share

A Boolean function is described by an algebraic expression consisting of binary variables, the constants 0 and 1, and the logic operation symbols
For a given set of ...

Share

Previously, we have already discussed Relations and their basic types.
Combining Relation:
Suppose R is a relation from set A to B and S is a relation from set B to C...

Share

Write a program to print Binary representation of a given number.
Recommended: Please solve it on “PRACTICE” first, before moving on to the solution.
...

Share

Given an integer ‘x’, write a C function that returns true if binary representation of x is palindrome else return false.
For example a numbers with bin...

Share