It depends on the exact phrasing of the question. As you describe it, the question does not ask you to execute both branches of the if statement. It asks you to insert a condition that results in printing "hello world" without changing anything else.
If you have complete freedom in what you put in the condition, you can use this solution:
if(printf("hello ") == -1)
{
printf("hello");
}
else
{
printf("world");
}
However, the solution uses "printf" in the condition, which is ruled out by one of the rules you gave. What's not clear to me is whether the printf prohibition also applies to what you write in the condition.
Note: Answer is edited to reflect the comments. The original answer ignored the prohibition on print statements.