Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <stdio.h>
- int main(int argc, const char * argv[]) {
- char * books[5];
- char currentBook[1024];
- for(int i = 0; i < 5; i++)
- {
- printf("Enter book:n");
- gets(currentBook);
- books[i] = currentBook;
- }
- for(int i = 0; i <5; i ++)
- {
- printf("Book #%d: %sn", i, books[i]);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement