Tell Error

#include

using namespace std;

int main(){

question();

return 0;
}

void question(){
cout << “Tell error” << endl;
}

2 Likes

Function Prototype must be declared before the Calling of the function in C++.

You must add Function Prototype before the main() function.

Function Prototype- void question();

When the function is called, compiler search for the function prototype and if it is not found, it shows error.

include

using namespace std;

void question();

int main(){

question();

return 0; }

void question(){ cout << “Tell error” << endl; }

try this.

1 Like
//