Top

Discussion

What will be the output of the following C code?

#include 
    int main()
    {
        int y = 0;
        if (1 |(y = 1))
            printf("y is %d\n", y);
        else
            printf("%d\n", y);
 
    }

 

  • A.y is 1
  • B.1
  • C.run time error
  • D.undefined

Answer: A

No answer description available for this question.

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

Post your comment