I am new to C. Here is my \"Hello,world!\" program.
#include
int main(void)
{
printf(\"Hello, world!\\n\");
return 0;
}
First make sure you correct your program:
#include
int main(void) {
printf("Hello, world!\n"); //printf instead of pintf
return 0;
}
Save the file as HelloWorld.c
and type in the terminal:
gcc -o HelloWorld HelloWorld.c
Afterwards just run the executable like this:
./HelloWorld
You should be seeing Hello World!