Multiple choice

What will be the output of the given program?

int main()
{
 displayOut();
 return 0;
}
 int displayOut()
{
 printf(Hi I am Robot\\n);
}

  1. Compiles with no warning and error messages

  2. Compiles with warning: conflicting types for dispalyOut

  3. Does not compile, gives error : dispalyOut not declared

  4. Compiles but throws error while linking

  5. Hi I am Robot

Reveal answer Fill a bubble to check yourself
C Correct answer
Explanation

This is the correct option  because in this program we are calling the function displayout(), but we haven’t given its return type. So in the compile time, the compiler will throw an error that “Displayout was not declared in this scope”.