I am new to C. Here is my \"Hello,world!\" program.
#include
int main(void)
{
printf(\"Hello, world!\\n\");
return 0;
}
To do this:
open terminal
type in the terminal: nano ; which is a text editor available for the terminal. when you do this. something like this would appear.
here you can type in your C program
type in control(^) + x -> which means to exit.
save the file by typing in y to save the file
write the file name; e.g. helloStack.c (don't forget to add .c)
when this appears, type in gcc helloStack.c
./a.out: this should give you your result!!