Skip to content

Instantly share code, notes, and snippets.

@DeclanGas
Created June 23, 2022 16:42
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save DeclanGas/16f922078d765065b919a01cbf99ae74 to your computer and use it in GitHub Desktop.
Save DeclanGas/16f922078d765065b919a01cbf99ae74 to your computer and use it in GitHub Desktop.
#include <cs50.h>
#include <stdio.h>
int main(int argc, string argv[])
{
if (argc != 3)
{
printf("Usage: ./exit <firstname> <lastname>\n");
return 1;
}
// prints out hello followed by firstname, lastname
printf("Hello, %s %s!\n", argv[1], argv[2]);
return 0;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment