Piyush said:
void main
{
int x;
if(x)
printf("Hello");
else
printf("World");
}
What value can be given to x such that the output is "Hello
World"?
Given that you're on Google, why not just search the c.l.c archives for
the thread on the almost exact same question from a few weeks ago?
Perhaps you should give us your professor's name, as I'm sure we'd all
like to know who gives out such homework assignments.
Of course, given your syntax error on "void main" (and numerous other
things), your version of the "problem" is unsolvable.
--
+-------------------------+--------------------+-----------------------------+
| Kenneth J. Brody |
www.hvcomputer.com | |
| kenbrody/at\spamcop.net |
www.fptech.com | #include <std_disclaimer.h> |
+-------------------------+--------------------+-----------------------------+
Don't e-mail me at: <mailto:
[email protected]>