Yeldar Kudaibergenov

Yeldar Kudaibergen

Podcaster, developer of ProxyFeed, DirectFlow and QRX.

Learn programming through "Hello World"

Yesterday, just for fun, I decided to write a regular Hello World program in C while sitting in my server console. It turned out like this:

#include <stdio.h>

int main(){
  printf("%s", "Hello, World!\n");
  return 0;
}

And suddenly I discovered that Hello World seems like a very simple program, but it can be written in many different ways. For example, here is another version:

#include <stdio.h>

char *string = "Hello, World!\n";

int main(){
  printf("%s", string);
  return 0;
}

And you can keep expanding this for a very long time, finding solutions at your own level of understanding of the language. For example, if you are learning how to create functions:

#include <stdio.h>

void printStr(char *str);
const char *string = "Hello, World!";

int main(){
  printStr(string);
  return 0;
}

void printStr(char *str){
  printf("%s\n", str);
}

I will update this post as I create new variations.

The most important thing is not to make the program more complicated just for the sake of complexity, and to remember that the goal of the program is simply to print the words “Hello, World”.

Published on May 23, 2026