Q:

what will be the output of the following code?

0

what will be the output of the following code?

void m(int k)
    {
        printf("hi");
    }
    void m(double k)
    {
        printf("hello");
    }
    void main()
    {
        m(3);
    }

  1. Compile time error
  2. hi
  3. hello
  4. hi hello

All Answers

need an explanation for this answer? contact us directly to get an explanation for this answer

Correct Answer:

Compile time error

need an explanation for this answer? contact us directly to get an explanation for this answer

total answers (1)

Similar questions


need a help?


find thousands of online teachers now
It is necessary to declare the type of a function ... >>
<< Guess the output of the following code:...