Advertisement
Infra_HDC

HELLO WITH ARGS

Mar 20th, 2019
276
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.29 KB | None | 0 0
  1. #include <stdio.h>
  2.  
  3. int main(int argc, char* argv[]) {
  4.         printf("Hello, World!\n");
  5.         printf("argc = %d\n",argc);
  6.         if (argc > 1)
  7.                 for (int i=0; i<argc; i++) {
  8.                         printf("argv [%d] = %s\n",i,argv[i]);
  9.                 }
  10.         return 0;
  11. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement