Advertisement
Guest User

Latimer biscuit

a guest
Aug 24th, 2019
133
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.33 KB | None | 0 0
  1. #include <stdlib.h>
  2. #include <unistd.h>
  3. #include <stdio.h>
  4.  
  5. int main(int argc, char **argv)
  6. {
  7.   volatile int modified;
  8.   char buffer[64];
  9.  
  10.   modified = 0;
  11.   gets(buffer);
  12.  
  13.   if(modified != 0) {
  14.       printf("you have changed the 'modified' variable\n");
  15.   } else {
  16.       printf("Try again?\n");
  17.   }
  18. }
  19. ///vegemite ftw
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement