not 100% sure if this is what you are asking for but here it goes. you have a number 11110000 (binary) and you want 00001111 (binary)? you want to use the xor operator ^ value = 0xf0; //11110000...
You either convert back to decimal or learn to think in hex.You probably think in non-decimal a lot more than you realise. If you think of 14 days as two weeks, you are thinking in base 7; if you...
The following codes only applied to unsigned integers: public int Reverse(int inputNumber) { string inputString = inputNumber.ToString(); string reversed = StringUtil.Reverse(inputString); return...
include <stdlib.h>// Returns an unsigned int containing the reversed digits of n.unsigned int reverseNumber(unsigned int n) {unsigned int nRev = 0; div_t d; while(n != 0) { // Divide n by 10 to...
include<stdio.h>main(){int a , d=0; clrscr();printf("\nEnter a number that is to be reversed:");scanf("%d",&a);for(; a>0;) { d= d*10 + a%10; a /=10; } printf("%d", d);getch();}
Related ads:
Shopping for Computer Programming deals?
Find Coupons and Promo Codes on Coupons by Answers.com