16 lines
263 B
C
16 lines
263 B
C
// Returns explicit value from main
|
|
|
|
#include <cs50.h>
|
|
#include <stdio.h>
|
|
|
|
int main(int argc, string argv[])
|
|
{
|
|
if (argc != 2)
|
|
{
|
|
printf("Missing command-line argument\n");
|
|
return 1;
|
|
}
|
|
printf("hello, %s\n", argv[1]);
|
|
return 0;
|
|
}
|