C Programming - Command Line Arguments - Discussion

Discussion Forum : Command Line Arguments - Yes / No Questions (Q.No. 2)
2.
If the different command line arguments are supplied at different times would the output of the following program change?
#include<stdio.h>

int main(int argc, char **argv)
{
    printf("%d\n", argv[argc]);
    return 0;
}
Yes
No
Answer: Option
Explanation:
No answer description is available. Let's discuss.
Discussion:
25 comments Page 3 of 3.

Mani said:   9 years ago
Thank you @Sundar.

Suraj said:   5 years ago
Thank you @Sundar.
(1)

Meenu said:   1 decade ago
Thank you sundar.

Neha said:   1 decade ago
Thank you sundar.

Cool buddy said:   1 decade ago
Sundar rocks.


Post your comments here:

Your comments will be displayed after verification.