Top

Discussion

What will be the output of the following program?
 

#include < stdio>
int main()
{
int num = 0, z = 3;
if ( ! (num <= 0) || ++z )
printf( “%d %d ”, ++num + z++, ++z );
else
printf( “%d %d”, - -num + z- -, - - z);
return 0;
}

 

  • A.– 2 1
  • B.6 5
  • C.4 5
  • D.5 5

Answer: B

No answer description available for this question.

No comment is present. Be the first to comment.
Loading…

Post your comment