Home > Bullshit, C/C++ > Hello World! – Brain mode

Hello World! – Brain mode

Hi. How can we write an “hello world!” in brain-mode?
When we want to greet someone, the brain is activated and set as a greeting a phrase known to us: in our case, “hello world!”.

So we can translate this procedure in a C source code:

#include <malloc.h>
#include <stdio.h>

typedef struct hello_world {

	void (*say_hello)();
} hello;

void greeting() {
	printf("Hello world!\n");

void *activate_brain() {

	hello *thought;
	thought = (hello *)malloc(sizeof(hello));
	thought->say_hello = greeting;
	return thought;

int main() {

	hello *word;
	word = activate_brain();

	return 0;

Obviously a simple hello world like this:

printf("Hello world!\n")

Was too simple.. :-)
(Something is missing in the source code… check by your own! )
Bye bye.

Categories: Bullshit, C/C++ Tags: ,
  1. January 26, 2011 at 21:52

    I don’t get it. what r u suppose to do? Whats the meaning of it? Just wondering.

  2. Nullsub
    March 19, 2011 at 19:23

    You obviously forgot to clean up your malloced memory.

  3. April 26, 2011 at 01:00

    LoL, why you wrote this post?
    It’s sounds crazy XD

  4. Timmu
    February 11, 2012 at 07:16

    Soo random.. :) i like it haha, wish my blog was more funner…

  1. No trackbacks yet.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

%d bloggers like this: