Advertisement
Guest User

Untitled

a guest
Apr 30th, 2016
49
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.29 KB | None | 0 0
  1. #include <stdio.h>
  2.  
  3. int main(int argc, const char * argv[]) {
  4.  
  5. char * books[5];
  6. char currentBook[1024];
  7. for(int i = 0; i < 5; i++)
  8. {
  9. printf("Enter book:n");
  10. gets(currentBook);
  11. books[i] = currentBook;
  12. }
  13.  
  14. for(int i = 0; i <5; i ++)
  15. {
  16. printf("Book #%d: %sn", i, books[i]);
  17. }
  18.  
  19. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement