Free help with homework

Why join Brainly?

  • ask questions about your assignment
  • get answers with explanations
  • find similar questions

Trace out and explain the output of the c-programme

int i,j;
if (i&&j++)


Here i and j both will have the garbage value.so.it will print those values as the condition will become true.
0 0 0
Oh sorry i missed header file names
Ok. As you are saying the result is 0 0. It is following this logic:
Whenever the variable is declared, it will be assigned initial values like int 0 float 0.0 and so on. This can be the logic for assigning i and j the value 0
Might be correct thanks
The Brain
  • The Brain
  • Helper
Not sure about the answer?
Learn more with Brainly!
Having trouble with your homework?
Get free help!
  • 80% of questions are answered in under 10 minutes
  • Answers come with explanations, so that you can learn
  • Answer quality is ensured by our experts