command line argument

PHOTO EMBED

Mon Jun 13 2022 05:41:35 GMT+0000 (Coordinated Universal Time)

Saved by @KanishqJ8

#include <stdio.h>

int main(int argc, char const*argv[]) {
    printf("the value of argc is %d\n",argc);
    for(int i=0; i<argc; i++){ 
        printf("this arugument at index %d has a value of %s\n",i,argv[i]);
    }
    
    return 0;
}
content_copyCOPY