Would it be possible to print Hello twice using single condition?
if \"condition\"
printf (\"Hello\");
else
printf(\"World\");
Two possible Solutions without using printf statements :-
First :-
#include
int
main(void)
{
if (!stdin || (stdin = 0, main()))
printf("hello");
else
printf("world");
return 0;
}
Second
#include
void main()
{
if (1
#define else if (1)
)
{
printf("hello");
}
else
{
printf("world");
}
}
Reference :- Link1 , Link2