#include <unistd.h>
int     main(int argc, char *argv[])
{
    int     i;
    i = 0;
    if (argc != 2)
        write(1, "a\n", 2);
    else
    {
        while (argv[1][i])  /*<<< the box [] with i */
        {
            if (argv[1][i] == 'a')  /*<<< and here */
            {
                write(1, "a", 1);
                break ;
            }
            i += 1;
        }
        write(1, "\n", 1);
    }
    return (0);
}
I'm fairly new to C programing, I need someone to explain me what the second [] box in argv do. What can it be used for, is there any specific name for the second [], and how does it work?
 
     
    