#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;
}
Preview:
downloadDownload PNG
downloadDownload JPEG
downloadDownload SVG
Tip: You can change the style, width & colours of the snippet with the inspect tool before clicking Download!
Click to optimize width for Twitter