Advertisement
Guest User

Untitled

a guest
Sep 24th, 2017
59
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.40 KB | None | 0 0
  1. if(argc==2)printf("The argument supplied is %s\n",argv[1]);
  2. else if(argc>2)printf("Too many arguments supplied.\n");
  3. else printf("One argument expected.\n");
  4.  
  5. if (argc == 1) printf("\nYou should give an argument in the command line \n");
  6. else
  7. {choice = (int) *(argv[1]);
  8. printf ("ASCII %d\n",choice);
  9. if (choice>=49) printf ("\ninterpolating string lengths\n");
  10. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement