From the Standard:
5.1.2.2.1 Program startup
…
— argv[argc] shall be a null pointer.
So, yes; argv is null terminated
More Related Contents:
- Regarding ‘main(int argc, char *argv[])’ [duplicate]
- When can argv[0] have null?
- Get other process’ argv in OS X using C
- expected ‘void (**)(void *, const char *)’ but argument is of type ‘void (*)(void *, const char *)
- how to read .docx file in c [closed]
- What can I use for input conversion instead of scanf?
- Why does reading into a string buffer with scanf work both with and without the ampersand (&)?
- Is NULL always zero in C?
- gcc, strict-aliasing, and horror stories [closed]
- What exactly is meant by “de-referencing a NULL pointer”?
- printf adds extra `FFFFFF` to hex print from a char array [duplicate]
- call printf using va_list
- Matrix multiplication: Small difference in matrix size, large difference in timings
- Meaning of “referencing” and “dereferencing” in C
- How do you get a directory listing in C?
- Problems with C scanf(“%c”) function to read characters one by one
- Why does ‘fopen’ return a NULL pointer?
- get process name from process id (win32)
- How to work on a sub-matrix in a matrix by pointer?
- When to use static keyword before global variables?
- Why, or when, do you need to dynamically allocate memory in C?
- Finding the address range of the data segment
- C pointers and arrays/ ‘sizeof’ operator [duplicate]
- Is fgets() returning NULL with a short buffer compliant?
- Why is int rather than unsigned int used for C and C++ for loops?
- What does static mean in ANSI-C [duplicate]
- How to use SO_KEEPALIVE option properly to detect that the client at the other end is down?
- strdup() function
- Timing CUDA operations
- How to allocate the array before calling strcpy?