Hi,

could any one help me out with the follwing problem?

#include <stdio.h>

int i = printf("Hello World");

int main()
{}

When I compile this on gcc (it works with VC++) , it gives an error "initializer element is not constant" where as

#include <stdio.h>

int main()
{
int i = printf("Hello World");
}

displays "Hello World".

I would like to know the reason behind this behaviour?

thanking you

Sibu