#include #include #include #include char *password = "Y3sterday"; int main(){ printf("Enter the password: \n"); char user_password[32]; scanf("%s", user_password); if(strcmp(user_password, password)){ printf("You don't know the password, sorry\n"); return 1; } int fd = open("/proc/testfile", O_RDONLY); int a = 762; char secret[100] = "This is a secret that this program is holding, T0morrow"; char buffer[512]; printf("Buffer is at address %p\n", buffer); ssize_t readlen = read(fd, buffer, 512); buffer[readlen] = 0; printf("buffer = %s\n", buffer); printf("At the end, our secret phrase is: %s\n", secret); close(fd); if(a == 762) printf("Our variable remained unchanged\n"); else printf("a has changed to %d\n", a); return 0; }