Top

Discussion

What is the output of this code having void return-type function?

void foo()
    {
        return 1;
    }

    void main()
    {
        int x = 0;
        x = foo();
        printf("%d", x);
     }

 

  • A.1
  • B.Runtime error
  • C.Compile time error

Answer: D

No answer description available for this question.

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

Post your comment