#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
#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.