The C Programming Guide

Hello, Gemini

Let's write our first program in C.

Open your text editor of choice and write the following code:

#include 

int main(void)
{
	printf("Hello, Gemini!\n");

	return 0;
}

Save it with the file extension .c and then it is time to compile.

Open the terminal emulator and type the following command:

gcc hello.c -o hello

Now run the program by using the following command:

./hello

Conclusion

If everything was done properly, the terminal should print the following message:

Hello, Gemini!

Great! Let's move on to the next topic.

NEXT: UNDER CONSTRUCTION

=> Teletpa Home | Back

Proxy Information
Original URL
gemini://tilde.pink/~telepta/scientia/c/hello-gemini.gmi
Status Code
Success (20)
Meta
text/gemini;
Capsule Response Time
48.835576 milliseconds
Gemini-to-HTML Time
0.406935 milliseconds

This content has been proxied by September (3851b).