Top

Discussion

What is the output of this C code?    

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

 

  • A.1
  • B.Run time error
  • C.Undefined

Answer: A

No answer description available for this question.

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

Post your comment