Skip to content

Commit

Permalink
ch-2-code
Browse files Browse the repository at this point in the history
  • Loading branch information
mohitmishra786 committed Nov 11, 2024
1 parent ad7f303 commit facd07b
Show file tree
Hide file tree
Showing 8 changed files with 16 additions and 0 deletions.
Binary file added src/code/ch2/example
Binary file not shown.
16 changes: 16 additions & 0 deletions src/code/ch2/example.c
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
// example.c
#include <stdio.h>

const char message[] = "Hello from ELF!";
int initialized_var = 42;
int uninitialized_var;

void print_message() {
printf("%s\n", message);
}

int main() {
uninitialized_var = initialized_var;
print_message();
return 0;
}
Binary file added src/code/ch2/example.o
Binary file not shown.
Binary file added src/code/ch2/example_modified
Binary file not shown.
Binary file added src/code/ch2/example_static
Binary file not shown.
Binary file added src/code/ch2/libexample.o
Binary file not shown.
Empty file added src/code/ch2/myfile.txt
Empty file.
Binary file added src/code/ch2/text.bin
Binary file not shown.

0 comments on commit facd07b

Please sign in to comment.