C Hello World program without using a semicolon
gd.c
#include <stdio.h>
int main()
{
    if (printf("Hello, World!\n"))
    {
    }

    while (!printf("Hello, World!\n"))
    {
    }

    switch (printf("Hello, World!\n"))
    {
    }
}
Output
godarda@gd:~$ gcc gd.c
godarda@gd:~$ ./a.out Hello, World! Hello, World! Hello, World! godarda@gd:~$
Comments and Reactions