Tuesday, 3 May 2016

Why following program allows to compile when function prototype or implementation of function is not present before calling that function?

 
In c following code is valid because c does not expect a prototype while compiling, but in c++ it is not valid because c++ expect a prototype while compiling.

int main()
{
printf("\n WILL YOU ALL ME TO CALL”);
callme();
}

int callme()
{

}