Advertisement
salron3

Prints

Apr 3rd, 2017
81
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.39 KB | None | 0 0
  1. #define _CRT_SECURE_NO_WARNINGS
  2. #include <stdio.h>
  3. #include <stdlib.h>
  4.  
  5. int main()
  6. {
  7.     char *names[] =
  8.     {
  9.         "Silistra",
  10.         "Gabrovo",
  11.         "Lovech",
  12.         "Tutrakan"
  13.     };
  14.  
  15.     printf("%c\n", *names[1]);
  16.     printf("%c\n", **names);
  17.  
  18.     printf("%s\n", names[1]);
  19.     printf("%c\n", names[2][2]);
  20.  
  21.     printf("%s\n", *(names + 1));
  22.     printf("%s\n", (*names) + 3);
  23.  
  24.     system("pause");
  25.     return 0;
  26. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement