To complete example, here is hello world C example.

nano hello.c

//C hello world example
#include <stdio.h>
 
int main()
{
  printf("Hello world\n");
  return 0;
}

gcc -Wall hello.c -o hello

./hello
Hello world