Google
 

Tuesday, October 09, 2007

Procedure to combine the 0x89ABCDEF and 0x76543210 as 0x765432EF

#include <stdio.h>
#include <stdlib.h>

/*
Procedure to combine the
0x89ABCDEF and 0x76543210
as 0x765432EF
*/

int main(int argc, char* argv[])
{
int x = 0x89ABCDEF;
int y = 0x76543210;
int z = (x & 0xFF) + (y & ~0xFF);
printf("%X \n",z);
system("PAUSE");
return 0;
}

--
Happy day, happy life!

No comments: