daily pastebin goal
14%
SHARE
TWEET

Untitled

a guest Aug 10th, 2018 52 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. int main(int argc, char **argv){
  2.  
  3.     printf(argv[0][0]);
  4.  
  5.     while (1){}
  6.     return 0;
  7. }
  8.    
  9. // C program to illustrate
  10. // command line arguments
  11. #include<stdio.h>
  12.  
  13. int main(int argc, char* argv[])
  14. {
  15.     int counter;
  16.     printf("Program Name Is: %s",argv[0]);
  17.     if (argc == 1)
  18.         printf("nNo Extra Command Line Argument Passed Other Than Program Name");
  19.     if (argc >= 2)
  20.     {
  21.         printf("nChecking double array elements: %c",argv[0][0]);
  22.     }
  23.     return 0;
  24. }
  25.    
  26. Program Name Is: ./test
  27. Checking double array elements: .
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top