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
time clock and day count through second by user input (ratneshgujarathi)
14th Dec Project1 v0.5
B_141121_factorial01
1
FileCat
150109_RecursividadPrimo
18BCE2182 ASSESS_1 Q1-2
loop
18BCE2182 ASSESS_1 Q1-5
Assignment 7