Question
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);    }
Answer: Option D
Was this answer helpful ?
None.
Was this answer helpful ?
Submit Solution