Guest User

Untitled

a guest
Jul 15th, 2020
81
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. #include <stdio.h>
  2.  
  3. int main(int argc, char* argv[]) {
  4.    char* array[] = { "abc", "def", "ghi", NULL };
  5.    char** pointer = array;
  6.  
  7.    printf("size of array   = %zu\n", sizeof array);
  8.    printf("size of pointer = %zu\n", sizeof pointer);
  9.    printf("size of argv    = %zu\n", sizeof argv);
  10. }
  11.  
  12. $ ./a abc def ghi
  13. size of array   = 32
  14. size of pointer = 8
  15. size of argv    = 8
Advertisement
Add Comment
Please, Sign In to add comment