Questions tagged [argc]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
0
votes
1answer
935 views

char* text = (argc == 3) ? argv[2] : argv[1];

Could someone explain me what the line in the title actually does? Am I correct if argc is 3 char* text is argv[2] else char* text is argv[1] ? If so, how do the operators work in this ...