#include%26lt;stdio.h%26gt;
main()
{
message();
printf("\nCry, and you stop the monotomy");
}
message()
{
printf("\nSmile and world smiles with you....");
}
The error message
Call to undefined funtion "message" in funtion main()
Can u tell me where I am wrong
Simple C code problem?
You should declare the function before its use.
So this will be the correct format.
#include%26lt;stdio.h%26gt;
void message();
main()
{
message();
printf("\nCry, and you stop the monotomy");
}
void message()
{
printf("\nSmile and world smiles with you....");
}
Reply:I'm horrible with libraries or whatever. but it appears the %26lt;stdio.h%26gt; does not contain the function message();. Find out which library does and include it in the heading with stdio.h... what is message(); supposed to do? hope i helped
Reply:You haven't defined the function "message"
Simply delete that line or write a function for it before it is called.
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment