Thread: argv in the global main function and array or pointers to pointers

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Registered User
    Join Date
    Apr 2013
    Posts
    1,658

    argv in the global main function and array or pointers to pointers

    Moderator note: This thread was split from Why do you need pointers to pointers?

    Quote Originally Posted by Salem View Post
    int main ( int argc, char **argv )

    Your first exposure to pointers to pointers.
    It'a an array of pointers to pointers, so this can also be written as

    int main ( int argc, char *argv[] )
    Last edited by laserlight; 05-22-2013 at 08:28 PM.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Array of pointers and pointer for arrays with argv
    By thames in forum C Programming
    Replies: 4
    Last Post: 12-02-2012, 10:24 AM
  2. Global Access to Global Class without so many pointers
    By parad0x13 in forum C++ Programming
    Replies: 1
    Last Post: 11-11-2009, 02:48 PM
  3. Replies: 4
    Last Post: 07-01-2009, 01:53 PM
  4. Array of function pointers
    By Yasir_Malik in forum C Programming
    Replies: 5
    Last Post: 11-20-2003, 08:41 PM
  5. Array of function pointers?
    By The V. in forum C++ Programming
    Replies: 3
    Last Post: 10-16-2001, 08:37 PM