Sololearn: Learn to Code
New course! Every coder should learn Generative AI!
Try a free lesson
+ 4
The program name is usually the first command line argument C: #include <stdio.h> int main(int argc, char *argv[]) { printf("%s", *argv); return 0; } Python: from sys import argv print(argv[0])
16th Apr 2019, 7:29 PM
Anna
Anna - avatar