how to print?

Let the c program is

#include<stdio.h>
void main()
{
printf("\n In side the main");
}

The out put is In side the main
The printf satatement is only statement in main. Let say I want to print the string "Hello World" before the printf satatement is executed.
Say the output should be like
Hello World
In side the main

is it possible?

Do not use void main(). Here is why:

#include<stdio.h>
int main()
{
    fprintf(stdout,"%s", "Hello World. ");
    printf("\n In side the main");
    return 0;
}
or
int main()
{
    const char *hello="Hello world.\n Inside the main.";
    printf("%s\n", hello);
    return 0;
}

Actually I don't understand what you are really asking.

[quote=surjyap

the printf satatement is only statement in main.
[/quote]

May be defining a macro will solve the problem...

Check out Can any one solve this Problem...!!!

Regards,