using cs50's get_string function:
#include <cs50.h>
#inlcude <stdio.h>
int main(void)
{
String name = get_string("What is your name: \n");
printf("Hi %s\n" , name);
}
source: cs50
using cs50's get_string function:
#include <cs50.h>
#inlcude <stdio.h>
int main(void)
{
String name = get_string("What is your name: \n");
printf("Hi %s\n" , name);
}
source: cs50
configures clang to name the resulting output file "hello" instead of a.out
source: cs50
a.out is the default file name for the file obtained after compiling using clang
source: cs50
source: cs50
if you type command : "make hello"
the make program will automatically look for a file called "hello.c" to compile
and will produce a file called "hello" that you can execute
source: cs50