9511_workbook

solved exercises from algorithms & programming I (9511) prof. Cardozo
Index Commits Files Refs README
commit 95eb605b35e8c704289019031e50fab11c04dc20
parent bb0227647e34180a62c2d3c29f4fefa44ce706f9
Author: klewer-martin <martin.cachari@gmail.com>
Date:   Sat, 13 Feb 2021 16:55:41 -0300

Update: added ex06.c;

Diffstat:
Aguia07/ex06.c | 22++++++++++++++++++++++
1 file changed, 22 insertions(+), 0 deletions(-)
diff --git a/guia07/ex06.c b/guia07/ex06.c
@@ -0,0 +1,22 @@
+#include <stdio.h>
+
+
+
+
+
+int main (void)
+{
+    unsigned int n;
+    size_t i;
+
+    unsigned char x[4] = {0x10, 0x30, 0x25,0xF4};
+
+    for(i = 0, n = 0; i < sizeof(x); i++) {
+        printf("%X", x[i]);
+        n = ((n << 8) | x[i]);
+    }        
+
+    printf("\n%lu\n", n);
+
+    return 0;
+}