Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <stdio.h>
- int main(int argc, char* argv[]) {
- char* array[] = { "abc", "def", "ghi", NULL };
- char** pointer = array;
- printf("size of array = %zu\n", sizeof array);
- printf("size of pointer = %zu\n", sizeof pointer);
- printf("size of argv = %zu\n", sizeof argv);
- }
- $ ./a abc def ghi
- size of array = 32
- size of pointer = 8
- size of argv = 8
Advertisement
Add Comment
Please, Sign In to add comment