Pages

Hello World written in C on Mint

I have no immediate plans to write C code but I bumped into "Hello World" and thought I try it to prove that gcc was installed and working.

Create the helloworld.c source in Documents:

#include <stdio.h>
int main (void)
{
  printf("Hello World!\n");
  return 0;
}


Compile it with:

gcc helloworld.c -o helloworld


And run it with:

./helloworld