Advertisement
Conner_36

pointers

Oct 15th, 2011
358
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.73 KB | None | 0 0
  1. //
  2. //  main.cpp
  3. //  C8
  4. //
  5. //  Created by Betsalel Williamson on 10/16/11.
  6. //  Copyright 2011 __MyCompanyName__. All rights reserved.
  7. //
  8.  
  9. #include <stdio.h>
  10. #include <string.h>
  11.  
  12.  
  13. int main (int argc, const char * argv[])
  14. {
  15.    const char *article[ 5 ] = { "the", "one", "a", "some", "any" };
  16.    
  17.    const char *noun[ 5 ] = {"boy", "girl", "dog", "town", "car" };
  18.    
  19.    const char *verb[ 5 ] = { "drove", "jumped", "walked", "ran", "skipped"};
  20.    
  21.    const char *preposition[ 5 ] = { "to", "from", "over", "under", "on"};
  22.    
  23.    //article noun verb preposition article noun  
  24.    const char *sentince [ 6 ] = { *article, *noun, *verb, *preposition, *article, *noun };
  25.      
  26.    printf("%s", *sentince);
  27.    
  28.    return 0;
  29. }
  30.  
  31.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement