💾 Archived View for tilde.pink › ~telepta › scientia › c › hello-gemini.gmi captured on 2023-09-08 at 18:03:12. Gemini links have been rewritten to link to archived content

View Raw

More Information

-=-=-=-=-=-=-

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 <stdio.h>

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