Solutions to the excersise problems in 'Let Us C'
- Create a c file (filename.c, example hello.c)
- Write some code
#include<stdio.h>
int main()
{
printf("Hello, world");
return 0;
}
- Execute in Terminal
$ gcc -o hello hello.c
$./hello
syntax: gcc -o <filename(whatever you can give)> filename.c
example: $ gcc -o hii hello.c
$ ./hii