int main(int argc, char **argv) { test_show_bytes(12345); test_show_bytes(415); test_show_bytes(101345); return 0; }
int main(){ printf("Hello, converting stuff here: \n"); test_show_bytes(12345); }
int main(int argc, char *argv[]) { int val = 12345; if (argc > 1) { if (argc > 1) { val = strtol(argv[1], NULL, 0); } printf("calling test_show_bytes\n"); test_show_bytes(val); } else { printf("calling show_twocomp\n"); show_twocomp(); printf("Calling simple_show_a\n"); simple_show_a(); printf("Calling simple_show_b\n"); simple_show_b(); printf("Calling float_eg\n"); float_eg(); printf("Calling string_ueg\n"); string_ueg(); printf("Calling string_leg\n"); string_leg(); } return 0; }
int main (void) { int foo_1 = 12345; int foo_2 = 456778; int foo_3 = 987923774; int foo_4 = 21347432; printf ("foo_1: 12345\n\n"); test_show_bytes (foo_1); printf ("foo_2: %d\n\n", foo_2); test_show_bytes (foo_2); printf ("foo_3: %d\n\n", foo_3); test_show_bytes (foo_3); printf ("foo_4: %d\n\n", foo_4); test_show_bytes (foo_4); return 0; }
int main(void) { test_show_bytes(0x12345678); practice2D2(); const char *s = "ABCDEF"; show_bytes((byte_pointer) s, strlen(s)); int a = 20, b = 30; inplace_swap(&a, &b); printf("a=%d, b=%d\n", a, b); practice2D7(); practice2D8(); practice2D10(); practice2D11(); }
int main() { test_show_bytes(3510593); printf("-----------------\n"); const char *str1 = "12345"; show_bytes((byte_pointer) str1, 6); printf("-----------------\n"); const char *str2 = "abcdef"; show_bytes((byte_pointer) str2, strlen(str2)); printf("------------------\n"); short x = 12345; short mx = -x; show_bytes((byte_pointer) &x, sizeof(short)); show_bytes((byte_pointer) &mx, sizeof(short)); return 0; }
int main() { printf("figure 2.5--\n"); test_show_bytes(12345); printf("practice problem 2.5--\n"); int val = 0x87654321; byte_pointer valp = (byte_pointer) &val; show_bytes(valp, 1); show_bytes(valp, 2); show_bytes(valp, 3); show_bytes(valp, 4); printf("practice problem 2.7--\n"); const char *s = "abcdef"; show_bytes((byte_pointer) s, strlen(s)); }
int main(int argc, char const *argv[]) { test_show_bytes(12345); return 0; }
int main(){ test_show_bytes(0x12345); const char *s="abcdef"; show_bytes((byte_pointer)s,strlen(s)); }
main() { int test = 23423234; show_int(test); test_show_bytes(test); }