Run Code
|
API
|
Code Wall
|
Misc
|
Feedback
|
Login
|
Theme
|
Privacy
|
Patreon
hwkpractice
#include <stdio.h> int main(void) { // number that we read in from stdin unsigned int k, example1, example2, example3; // First read in an integer in hex scanf("%x\n", & k); printf("Read in the value %x.\n\n", k); //example1 = ((k & 0xFFFFFF00) | 0xFF000000) ^ 0x0000FF00; example2 = (k & 1) | 0xAAAAAAAA; example3 = (k & 1) | 0x55555554; //printf("Updated value for example 1 is %x.\n\n", example1); printf("Updated value for example 2 is %x.\n\n", example2); printf("Updated value for example 3 is %x.\n\n", example3); return 0; }
run
|
edit
|
history
|
help
0
ReDisp
150114_ArrayOrdenado
120465-11.1-3E
iplk
B_141128_MatrizUnSoloIndice
Project 5 v.08
llist.h
Lab 7 blackjack v0.5
pointer**
Score