Top

Discussion

Which of the following statement is correct about the code snippet given below?

#include < stdio>
int main()
{
float z = 12.35, c = 10;
if( ++z -z)
c += z;
else
c - = z;
printf( “%f %f”, z, c);
return 0;
}

 

  • A.The program will result in compile time error
  • B.The program will print 12.35 22.35
  • C.The program will print 13.35 22.35
  • D.The program will print 1.35 11.35

Answer: A

No answer description available for this question.

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

Post your comment