How to convert a binary number to Hexa decimal number??
(Note:Do not convert it into binary and to Hexadecimal)
Answer / vignesh1988i
let us take a binary number.. say :
0000000110101110 (16 bit number)
we already know it's the consersion to HEXA DECIMAL equivalent.... so split the numbers into 4 bits each... like,
0000 0001 1010 1110 (16 bit number)
and for converting directly there is a conversion called 8421 code...
8421 | 8421 | 8421 | 8421
0000 | 0001 | 1010 | 1110
now in the first pass it is zero (from left to right) , second it is 1 , in third it is 10 (A in hexa.) , in fourth it is 14 (E in hexa.)
thus the final representation for the above binary is : 1AE
thank u
Is This Answer Correct ? | 12 Yes | 4 No |
Program to find the absolute value of given integer using Conditional Operators
write a program that reads lines(using getline), converts each line to an integer using atoi, and computes the average of all the numbers read. also compute the standard deviation.
Explain pointers in c programming?
What is Generic pointer? What is the purpose of Generic pointer? Where it is used?
Write a program for deleting duplicate elements in an array
What is a shell structure examples?
which is an algorithm for sorting in a growing Lexicographic order
explain about storage of union elements.
What is a ternary operator in c?
Why is the code below functioning. According to me it MUST NOT.
where do we use volatile keyword?
#include <stdio.h> int main ( int argc, char* argv [ ] ) { int value1 = 10; int value2 = 5; printf ( "\n The sum is :%d", value1 | value2 ); } This is the answer asked by some one to add two numbers with out using arithmetic operator?Yes this answer is write it given out put as 15.But how????? what is need of following line? int main ( int argc, char* argv [ ] ) how it work?what is the meaning for this line? please explain me.Advance thanks